This fixes some parsing issues I've been having. In particular I'm using a OperationCupsGetPrinters request which returns all attributes for all printers. I was getting various errors like binary.Read: invalid type *int. Ultimately I discovered it was because in a few places int was used instead of int32. I'm on amd64, where int is (at least sometimes) 64bits instead of 32.
If the change to the public API of Resolution is unacceptable, I can rewrite the decodeResolution function to use the correct type privately.
This fixes some parsing issues I've been having. In particular I'm using a
OperationCupsGetPrinters
request which returns all attributes for all printers. I was getting various errors likebinary.Read: invalid type *int
. Ultimately I discovered it was because in a few placesint
was used instead ofint32
. I'm on amd64, whereint
is (at least sometimes) 64bits instead of 32.If the change to the public API of
Resolution
is unacceptable, I can rewrite thedecodeResolution
function to use the correct type privately.