How do I write to a file in Golang using a pointer to the C data?
问题 I'm writing an app for the windows platform using FFmpeg and it's golang wrapper goav, but I'm having trouble understanding how to use the C pointers to gain access to an array. I'm trying to write the frame data, pointed to by a uint8 pointer from C, to a .ppm file in golang. Once I have this done, for proof of concept that FFmpeg is doing what I expect it to, I want to set the frames to a texture in OpenGl to make a video player with cool transitions; any pointers to do that nice and