MCPcopy Create free account
hub / github.com/PostHog/duckgres / decodeInt8

Function decodeInt8

server/types.go:934–939  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

932}
933
934func decodeInt8(data []byte) (int64, error) {
935 if len(data) < 8 {
936 return 0, fmt.Errorf("insufficient data for int8: got %d bytes, need 8", len(data))
937 }
938 return int64(binary.BigEndian.Uint64(data)), nil
939}
940
941func decodeFloat4(data []byte) (float32, error) {
942 if len(data) < 4 {

Callers 3

TestDecodeInt8Function · 0.85
decodeBinaryCopyFunction · 0.85
decodeBinaryFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestDecodeInt8Function · 0.68