asn1

package
v0.8.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 6 Imported by: 69

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_asn1_v1_asn1_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BitString

type BitString struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Len   uint32 `protobuf:"varint,2,opt,name=len,json=length,proto3" json:"len,omitempty"`
	// contains filtered or unexported fields
}

func (*BitString) Descriptor deprecated

func (*BitString) Descriptor() ([]byte, []int)

Deprecated: Use BitString.ProtoReflect.Descriptor instead.

func (*BitString) GetLen

func (x *BitString) GetLen() uint32

func (*BitString) GetValue

func (x *BitString) GetValue() []byte

func (*BitString) ProtoMessage

func (*BitString) ProtoMessage()

func (*BitString) ProtoReflect

func (x *BitString) ProtoReflect() protoreflect.Message

func (*BitString) Reset

func (x *BitString) Reset()

func (*BitString) String

func (x *BitString) String() string

func (*BitString) TruncateValue added in v0.7.22

func (m *BitString) TruncateValue() ([]byte, error)

TruncateValue - truncates value of trailing bits in the BitString the size stays the same Assuming that BitString has a non-empty length

func (*BitString) UpdateValue

func (m *BitString) UpdateValue(newBytes []byte) ([]byte, error)

UpdateValue - replace the bytes value with values from a new []byte the size stays the same

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL