Documentation
¶
Index ¶
- type EmbeddedToken
- type PreparedFixed64Key
- type PreparedKey
- type PreparedUint32Key
- type ProtoStream
- func (s *ProtoStream) BeginEmbedded() EmbeddedToken
- func (s *ProtoStream) BufferBytes() ([]byte, error)
- func (s *ProtoStream) EndEmbeddedPrepared(startPos EmbeddedToken, fieldKey PreparedKey)
- func (s *ProtoStream) Fixed64Prepared(fieldKey PreparedFixed64Key, value uint64)
- func (s *ProtoStream) Len() int
- func (s *ProtoStream) Raw(b []byte)
- func (s *ProtoStream) Reset()
- func (s *ProtoStream) StringPrepared(key PreparedKey, value string)
- func (s *ProtoStream) Uint32Prepared(fieldKey PreparedUint32Key, value uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmbeddedToken ¶
type EmbeddedToken int
type PreparedFixed64Key ¶
type PreparedFixed64Key byte
func PrepareFixed64Field ¶
func PrepareFixed64Field(fieldNumber int) PreparedFixed64Key
type PreparedKey ¶
type PreparedKey byte
PreparedKey of string,bytes or embedded wire type.
func PrepareEmbeddedField ¶
func PrepareEmbeddedField(fieldNumber int) PreparedKey
func PrepareField ¶
func PrepareField(fieldNumber int, wireType protowire.Type) PreparedKey
func PrepareStringField ¶
func PrepareStringField(fieldNumber int) PreparedKey
type PreparedUint32Key ¶
type PreparedUint32Key byte
func PrepareUint32Field ¶
func PrepareUint32Field(fieldNumber int) PreparedUint32Key
type ProtoStream ¶
type ProtoStream struct {
// contains filtered or unexported fields
}
func NewProtoStream ¶
func NewProtoStream() *ProtoStream
func (*ProtoStream) BeginEmbedded ¶
func (s *ProtoStream) BeginEmbedded() EmbeddedToken
func (*ProtoStream) BufferBytes ¶
func (s *ProtoStream) BufferBytes() ([]byte, error)
func (*ProtoStream) EndEmbeddedPrepared ¶
func (s *ProtoStream) EndEmbeddedPrepared( startPos EmbeddedToken, fieldKey PreparedKey, )
func (*ProtoStream) Fixed64Prepared ¶
func (s *ProtoStream) Fixed64Prepared(fieldKey PreparedFixed64Key, value uint64)
Fixed64Prepared writes a value of fixed64 to the stream.
func (*ProtoStream) Len ¶
func (s *ProtoStream) Len() int
func (*ProtoStream) Raw ¶
func (s *ProtoStream) Raw(b []byte)
Raw writes the byte sequence as is. Used to write prepared embedded byte sequences.
func (*ProtoStream) Reset ¶
func (s *ProtoStream) Reset()
func (*ProtoStream) StringPrepared ¶
func (s *ProtoStream) StringPrepared(key PreparedKey, value string)
StringPrepared writes a string to the stream.
func (*ProtoStream) Uint32Prepared ¶
func (s *ProtoStream) Uint32Prepared(fieldKey PreparedUint32Key, value uint32)
Uint32Prepared writes a value of uint32 to the stream.
Click to show internal directories.
Click to hide internal directories.