EncodeUntaggedBitArrayValue encodes a bit array value, appends it to the supplied buffer, and returns the final buffer.
(appendTo []byte, d bitarray.BitArray)
| 1970 | // EncodeUntaggedBitArrayValue encodes a bit array value, appends it to the |
| 1971 | // supplied buffer, and returns the final buffer. |
| 1972 | func EncodeUntaggedBitArrayValue(appendTo []byte, d bitarray.BitArray) []byte { |
| 1973 | bitLen := d.BitLen() |
| 1974 | words, _ := d.EncodingParts() |
| 1975 | |
| 1976 | appendTo = EncodeNonsortingUvarint(appendTo, uint64(bitLen)) |
| 1977 | for _, w := range words { |
| 1978 | appendTo = EncodeUint64Ascending(appendTo, w) |
| 1979 | } |
| 1980 | return appendTo |
| 1981 | } |
| 1982 | |
| 1983 | // EncodeUUIDValue encodes a uuid.UUID value with its value tag, appends it to |
| 1984 | // the supplied buffer, and returns the final buffer. |
no test coverage detected
searching dependent graphs…