internal/bufio/bufio.go
func (r *Reader) ReadUint16() uint16 {
	if r.err != nil {
		return 0
	}
	var n int
	n, r.err = io.ReadFull(r.rd, r.b[:2])
	r.cnt += n
	if r.err != nil {
		return 0
	}
	return binary.LittleEndian.Uint16(r.b[:2])
}
func (r *Reader) ReadUint16() uint16 {
	if r.err != nil {
		return 0
	}
	var n int
	n, r.err = io.ReadFull(r.rd, r.b[:2])
	r.cnt += n
	if r.err != nil {
		return 0
	}
	return binary.LittleEndian.Uint16(r.b[:2])
}
func ( r * Reader ) ReadUint16 ( ) uint16 { if r . err != nil { return 0 } var n int n , r . err = io . ReadFull ( r . rd , r . b [ : 2 ] ) r . cnt += n if r . err != nil { return 0 } return binary . LittleEndian . Uint16 ( r . b [ : 2 ] ) }
// ReadUint16 reads and returns an uint16.
ReadUint16 reads and returns an uint16 .