MCPcopy
hub / github.com/jackc/pgx / Uint16

Method Uint16

pgproto3/big_endian.go:15–19  ·  view source on GitHub ↗
(n uint16)

Source from the content-addressed store, hash-verified

13}
14
15func (b BigEndianBuf) Uint16(n uint16) []byte {
16 buf := b[0:2]
17 binary.BigEndian.PutUint16(buf, n)
18 return buf
19}
20
21func (b BigEndianBuf) Int32(n int32) []byte {
22 buf := b[0:4]

Callers 15

DecodeMethod · 0.80
DecodeMethod · 0.80
DecodeMethod · 0.80
DecodeMethod · 0.80
DecodeMethod · 0.80
DecodeMethod · 0.80
DecodeMethod · 0.80
DecodeMethod · 0.80
nbaseDigitsToInt64Function · 0.80
ScanMethod · 0.80
ScanMethod · 0.80
ScanMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected