asBitLength returns the length of the byte slice in bits.
()
| 19 | |
| 20 | // asBitLength returns the length of the byte slice in bits. |
| 21 | func (b byteLength) asBitLength() bitLength { |
| 22 | return bitLength(b) * 8 |
| 23 | } |
| 24 | |
| 25 | // ToBytes tries to return a byte slice from compatible types. |
| 26 | func ToBytes(data any) ([]byte, error) { |
no test coverage detected