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

Function DecodeBitArrayValue

pkg/util/encoding/encoding.go:3124–3130  ·  view source on GitHub ↗

DecodeBitArrayValue decodes a value encoded by EncodeUntaggedBitArrayValue.

(b []byte)

Source from the content-addressed store, hash-verified

3122
3123// DecodeBitArrayValue decodes a value encoded by EncodeUntaggedBitArrayValue.
3124func DecodeBitArrayValue(b []byte) (remaining []byte, d bitarray.BitArray, err error) {
3125 b, err = decodeValueTypeAssert(b, BitArray)
3126 if err != nil {
3127 return b, bitarray.BitArray{}, err
3128 }
3129 return DecodeUntaggedBitArrayValue(b)
3130}
3131
3132// DecodeUntaggedBitArrayValue decodes a value encoded by EncodeUntaggedBitArrayValue.
3133func 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…