You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that cgo allows you to reference C types via something like C.WRITER, in this case would it make sense to just reference the C types directly? Then maybe you could have a Go wrapper for a higher level concept in your program such as the thing that does the writing using the underlying struct.
Hi,
Any ideas on how to write a golang equivalent struct for self referencing struct something like this -
typedef struct WRITER {
int version;
int (WriteBlock)(struct WRITER thisPtr,
const void* dataBufferPtr,
unsigned long bufferSize);
} WRITER;
Thanks.
The text was updated successfully, but these errors were encountered: