MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / DecodeBitArrayValue

Function DecodeBitArrayValue

pkg/util/encoding/encoding.go:2243–2249  ·  view source on GitHub ↗

DecodeBitArrayValue decodes a value encoded by EncodeUntaggedBitArrayValue.

(b []byte)

Source from the content-addressed store, hash-verified

2241
2242// DecodeBitArrayValue decodes a value encoded by EncodeUntaggedBitArrayValue.
2243func DecodeBitArrayValue(b []byte) (remaining []byte, d bitarray.BitArray, err error) {
2244 b, err = decodeValueTypeAssert(b, BitArray)
2245 if err != nil {
2246 return b, bitarray.BitArray{}, err
2247 }
2248 return DecodeUntaggedBitArrayValue(b)
2249}
2250
2251// DecodeUntaggedBitArrayValue decodes a value encoded by EncodeUntaggedBitArrayValue.
2252func DecodeUntaggedBitArrayValue(b []byte) (remaining []byte, d bitarray.BitArray, err error) {

Callers 1

PrettyPrintValueEncodedFunction · 0.85

Calls 2

decodeValueTypeAssertFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…