encoding/asn1.BitString.Bytes (field)
24 uses
encoding/asn1 (current package)
asn1.go#L161: Bytes []byte // bits packed into bytes.
asn1.go#L173: return int(b.Bytes[x]>>y) & 1
asn1.go#L180: if shift == 8 || len(b.Bytes) == 0 {
asn1.go#L181: return b.Bytes
asn1.go#L184: a := make([]byte, len(b.Bytes))
asn1.go#L185: a[0] = b.Bytes[0] >> shift
asn1.go#L186: for i := 1; i < len(b.Bytes); i++ {
asn1.go#L187: a[i] = b.Bytes[i-1] << (8 - shift)
asn1.go#L188: a[i] |= b.Bytes[i] >> shift
asn1.go#L208: ret.Bytes = bytes[1:]
marshal.go#L278: return len(b.Bytes) + 1
marshal.go#L283: if copy(dst[1:], b.Bytes) != len(b.Bytes) {
crypto/x509
sec1.go#L66: PublicKey: asn1.BitString{Bytes: elliptic.Marshal(key.Curve, key.X, key.Y)},
sec1.go#L76: PublicKey: asn1.BitString{Bytes: key.PublicKey().Bytes()},
x509.go#L162: Bytes: publicKeyBytes,
x509.go#L1331: ext.Value, err = asn1.Marshal(asn1.BitString{Bytes: bitString, BitLength: asn1BitLength(bitString)})
x509.go#L1614: encodedPublicKey := asn1.BitString{BitLength: len(publicKeyBytes) * 8, Bytes: publicKeyBytes}
x509.go#L1656: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L1770: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L2052: Bytes: publicKeyBytes,
x509.go#L2082: Bytes: signature,
x509.go#L2450: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L566: out.Bytes = bytes
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |