Home | History | Annotate | Download | only in cryptobyte

Lines Matching defs:String

9 // The String type is for parsing. It wraps a []byte slice and provides helper
16 // See the documentation and examples for the Builder and String types to get
20 // String represents a string of bytes. It provides methods for parsing
22 type String []byte
24 // read advances a String by n bytes and returns them. If less than n bytes
26 func (s *String) read(n int) []byte {
35 // Skip advances the String by n byte and reports whether it was successful.
36 func (s *String) Skip(n int) bool {
42 func (s *String) ReadUint8(out *uint8) bool {
53 func (s *String) ReadUint16(out *uint16) bool {
64 func (s *String) ReadUint24(out *uint32) bool {
75 func (s *String) ReadUint32(out *uint32) bool {
84 func (s *String) readUnsigned(out *uint32, length int) bool {
98 func (s *String) readLengthPrefixed(lenLen int, outChild *String) bool {
124 func (s *String) ReadUint8LengthPrefixed(out *String) bool {
131 func (s *String) ReadUint16LengthPrefixed(out *String) bool {
138 func (s *String) ReadUint24LengthPrefixed(out *String) bool {
144 func (s *String) ReadBytes(out *[]byte, n int) bool {
155 func (s *String) CopyBytes(out []byte) bool {
164 // Empty reports whether the string does not contain any bytes.
165 func (s String) Empty() bool {