[go-nuts] binary.Read cgo fields

2019-04-20 Thread immueggpain
binary.Read can't set unexported fields, right? But my structs are defined in C, and I can't make all C source code using capital fields.. What could I do? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop r

Re: [go-nuts] binary.Read cgo fields

2019-04-30 Thread Immueggpain S
I guess I have no other choice then? BTW binary.Read shoud handle padding automatically. On Mon, Apr 22, 2019 at 10:53 AM Ian Lance Taylor wrote: > On Sat, Apr 20, 2019 at 11:53 AM wrote: > > > > binary.Read can't set unexported fields, right? > > But my structs are defined in C, and I can't ma

Re: [go-nuts] binary.Read cgo fields

2019-05-05 Thread Immueggpain S
Apr 30, 2019 at 4:42 AM Immueggpain S > wrote: > >> I guess I have no other choice then? BTW binary.Read shoud handle padding >> automatically. >> >> On Mon, Apr 22, 2019 at 10:53 AM Ian Lance Taylor >> wrote: >> >>> On Sat, Apr 20, 2019 at 11:53