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

Function ParseDBitArray

pkg/sql/sem/tree/datum.go:512–520  ·  view source on GitHub ↗

ParseDBitArray parses a string representation of binary digits.

(s string)

Source from the content-addressed store, hash-verified

510
511// ParseDBitArray parses a string representation of binary digits.
512func ParseDBitArray(s string) (*DBitArray, error) {
513 var a DBitArray
514 var err error
515 a.BitArray, err = bitarray.Parse(s)
516 if err != nil {
517 return nil, err
518 }
519 return &a, nil
520}
521
522// NewDBitArray returns a DBitArray.
523func NewDBitArray(bitLen uint) *DBitArray {

Callers 1

ParseAndRequireStringFunction · 0.85

Calls 1

ParseFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…