[go-nuts] mkwinsyscall and handling HRESULT

2021-09-07 Thread 'Alex Crane' via golang-nuts
I recently used mkwinsyscall for the functions around creating AppContainers (e.g. https://docs.microsoft.com/en-us/windows/win32/api/userenv/nf-userenv-createappcontainerprofile) e.g. Something like: //sys CreateAppContainerProfile(name *uint16, displayName *uint16, description *uint16, cap

[go-nuts] x/image/riff optimisation

2021-01-25 Thread Alex Crane
Hello, I have recently been using the x/image/riff library to inspect some large RIFF files - typically I am interested in all chunks except the data chunk. I have found with large files the performance is quite poor. Looking into the code it does a `got, z.err = io.Copy(ioutil.Discard, z.chunk