encoding/asn1.BitString.Bytes (field)
23 uses
encoding/asn1 (current package)
asn1.go#L160: Bytes []byte // bits packed into bytes.
asn1.go#L172: return int(b.Bytes[x]>>y) & 1
asn1.go#L179: if shift == 8 || len(b.Bytes) == 0 {
asn1.go#L180: return b.Bytes
asn1.go#L183: a := make([]byte, len(b.Bytes))
asn1.go#L184: a[0] = b.Bytes[0] >> shift
asn1.go#L185: for i := 1; i < len(b.Bytes); i++ {
asn1.go#L186: a[i] = b.Bytes[i-1] << (8 - shift)
asn1.go#L187: a[i] |= b.Bytes[i] >> shift
asn1.go#L207: 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#L60: PublicKey: asn1.BitString{Bytes: elliptic.Marshal(key.Curve, key.X, key.Y)},
x509.go#L130: Bytes: publicKeyBytes,
x509.go#L1925: ext.Value, err = asn1.Marshal(asn1.BitString{Bytes: bitString, BitLength: asn1BitLength(bitString)})
x509.go#L2194: encodedPublicKey := asn1.BitString{BitLength: len(publicKeyBytes) * 8, Bytes: publicKeyBytes}
x509.go#L2237: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L2351: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
x509.go#L2625: Bytes: publicKeyBytes,
x509.go#L2655: Bytes: signature,
x509.go#L2863: SignatureValue: asn1.BitString{Bytes: signature, BitLength: len(signature) * 8},
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L487: out.Bytes = bytes
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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. |