func withBinaryUint32( parser *parser, buf *streambuf.Buffer, f func(*message, uint32), ) error { val, err := buf.ReadNetUint32() if err == nil { f(parser.message, val) } return err }