Re: [go-nuts] How can I read bytes from C.Array(three levels) by using Cgo

2016-12-08 Thread Ian Lance Taylor
On Thu, Dec 8, 2016 at 12:48 AM, Wanghb Wang wrote: > my C code Array for example: > const uint8_t** kPacketMaskRandomTbl[48] = { > kPacketMaskRandom1, > kPacketMaskRandom2, > kPacketMaskRandom3, > . > }; > const uint8_t* kPacketMaskRandom1[1] = { > kMaskRandom1_1 > }; > const uint8_t

[go-nuts] How can I read bytes from C.Array(three levels) by using Cgo

2016-12-08 Thread Wanghb Wang
my C code Array for example: const uint8_t** kPacketMaskRandomTbl[48] = { kPacketMaskRandom1, kPacketMaskRandom2, kPacketMaskRandom3, . }; const uint8_t* kPacketMaskRandom1[1] = { kMaskRandom1_1 }; const uint8_t kMaskRandom1_1[2] = { 0x80, 0x00 }; . I want to read bytes from kP