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

Function SetInt32

internal/pgio/write.go:30–32  ·  view source on GitHub ↗
(buf []byte, n int32)

Source from the content-addressed store, hash-verified

28}
29
30func SetInt32(buf []byte, n int32) {
31 *(*[4]byte)(buf) = [4]byte{byte(n >> 24), byte(n >> 16), byte(n >> 8), byte(n)}
32}

Callers 6

encodeCopyValueFunction · 0.92
finishMessageFunction · 0.92
CopyFromMethod · 0.92
EncodeMethod · 0.92
EncodeMethod · 0.92
EncodeMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected