ProtobufOutput
Modified Protocol Buffers Output
The main difference between his and the stock Protocol Buffers Implementation is the handling of repeated fields. In this implementation:
- We use ONLY packed repeated fields for collections (including non-numeric types)
The Stock Implementation:
- Optionally uses packed repeated fields for numeric types
Attributes
- Graph
-
- Supertypes
-
trait Outputtrait RawOutputtrait NestedOutputtrait FieldOutputclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Copied From WireType.makeTag
Copied From WireType.makeTag
Attributes
Write out a RAW collection. This method will wrap the collection in whatever leading/trailing "stuff" is needed (e.g. length prefixing, leading/trailing chars, etc...). The method that you pass in should use the Output instance to make repeated calls to a single write
Write out a RAW collection. This method will wrap the collection in whatever leading/trailing "stuff" is needed (e.g. length prefixing, leading/trailing chars, etc...). The method that you pass in should use the Output instance to make repeated calls to a single write
Attributes
For writing objects. Note: that the obj is passed in for null handling by the implementation. If the object is not null then the function f will be called so the caller can write out the fields
For writing objects. Note: that the obj is passed in for null handling by the implementation. If the object is not null then the function f will be called so the caller can write out the fields
Attributes
Encode and write a varint. value
is treated as unsigned, so it won't be sign-extended if negative.
Encode and write a varint. value
is treated as unsigned, so it won't be sign-extended if negative.
Attributes
Encode and write a varint64.
Encode and write a varint64.