MCPcopy
hub / github.com/grafana/k6 / asBitLength

Method asBitLength

internal/js/modules/k6/webcrypto/types.go:21–23  ·  view source on GitHub ↗

asBitLength returns the length of the byte slice in bits.

()

Source from the content-addressed store, hash-verified

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

Callers 4

ImportKeyMethod · 0.80
DecryptMethod · 0.80
GenerateKeyMethod · 0.80
ImportKeyMethod · 0.80

Calls 1

bitLengthTypeAlias · 0.85

Tested by

no test coverage detected