Property | Type | Description | |
---|---|---|---|
CheckDepthFlushlock | void | ||
CheckRecursionStackAndPush | void | ||
CopyRawFromStream | void | ||
CreateException | |||
DemandSpace | void | ||
Dispose | void | ||
EndSubItem | void | ||
Flush | void | ||
GetPosition | int | ||
GetTypeKey | int | ||
IDisposable | void | ||
IncrementedAndReset | void | ||
PopRecursionStack | void | ||
SerializeType | string | ||
StartSubItem | ProtoBuf.SubItemToken | ||
WriteHeaderCore | void | ||
WriteInt32ToBuffer | void | ||
WriteObject | void | ||
WriteUInt32Variant | void | ||
WriteUInt64Variant | void | ||
Zig | uint | ||
Zig | ulong |
Method | Description | |
---|---|---|
AppendExtensionData ( IExtensible instance, |
Copies any extension data stored for the instance to the underlying stream
|
|
Close ( ) : void |
Flushes data to the underlying stream, and releases any resources. The underlying stream is *not* disposed by this operation.
|
|
EndSubItem ( ProtoBuf.SubItemToken token, |
Indicates the end of a nested record.
|
|
ProtoWriter ( Stream dest, ProtoBuf.Meta.TypeModel model, ProtoBuf.SerializationContext context ) : System |
Creates a new writer against a stream
|
|
SetPackedField ( int fieldNumber, |
Used for packed encoding; indicates that the next field should be skipped rather than a field header written. Note that the field number must match, else an exception is thrown when the attempt is made to write the (incorrect) field. The wire-type is taken from the subsequent call to WriteFieldHeader. Only primitive types can be packed.
|
|
SetRootObject ( object value ) : void |
Specifies a known root object to use during reference-tracked serialization
|
|
StartSubItem ( object instance, |
Indicates the start of a nested record.
|
|
ThrowEnumException ( |
Throws an exception indicating that the given enum cannot be mapped to a serialized value.
|
|
WriteBoolean ( bool value, |
Writes a boolean to the stream; supported wire-types: Variant, Fixed32, Fixed64
|
|
WriteByte ( byte value, |
Writes an unsigned 8-bit integer to the stream; supported wire-types: Variant, Fixed32, Fixed64
|
|
WriteBytes ( byte data, |
Writes a byte-array to the stream; supported wire-types: String
|
|
WriteBytes ( byte data, int offset, int length, |
Writes a byte-array to the stream; supported wire-types: String
|
|
WriteDouble ( double value, |
Writes a double-precision number to the stream; supported wire-types: Fixed32, Fixed64
|
|
WriteFieldHeader ( int fieldNumber, WireType wireType, |
Writes a field-header, indicating the format of the next data we plan to write.
|
|
WriteInt16 ( short value, |
Writes a signed 16-bit integer to the stream; supported wire-types: Variant, Fixed32, Fixed64, SignedVariant
|
|
WriteInt32 ( int value, |
Writes a signed 32-bit integer to the stream; supported wire-types: Variant, Fixed32, Fixed64, SignedVariant
|
|
WriteInt64 ( long value, |
Writes a signed 64-bit integer to the stream; supported wire-types: Variant, Fixed32, Fixed64, SignedVariant
|
|
WriteObject ( object value, int key, |
Write an encapsulated sub-object, using the supplied unique key (reprasenting a type).
|
|
WriteRecursionSafeObject ( object value, int key, |
Write an encapsulated sub-object, using the supplied unique key (reprasenting a type) - but the caller is asserting that this relationship is non-recursive; no recursion check will be performed.
|
|
WriteSByte ( sbyte value, |
Writes a signed 8-bit integer to the stream; supported wire-types: Variant, Fixed32, Fixed64, SignedVariant
|
|
WriteSingle ( float value, |
||
WriteString ( string value, |
Writes a string to the stream; supported wire-types: String
|
|
WriteType ( System value, |
Writes a Type to the stream, using the model's DynamicTypeFormatting if appropriate; supported wire-types: String
|
|
WriteUInt16 ( ushort value, |
Writes an unsigned 16-bit integer to the stream; supported wire-types: Variant, Fixed32, Fixed64
|
|
WriteUInt32 ( uint value, |
Writes an unsigned 16-bit integer to the stream; supported wire-types: Variant, Fixed32, Fixed64
|
|
WriteUInt64 ( ulong value, |
Writes an unsigned 64-bit integer to the stream; supported wire-types: Variant, Fixed32, Fixed64
|
Method | Description | |
---|---|---|
CheckDepthFlushlock ( ) : void | ||
CheckRecursionStackAndPush ( object instance ) : void | ||
CopyRawFromStream ( Stream source, |
||
CreateException ( |
||
DemandSpace ( int required, |
||
Dispose ( ) : void | ||
EndSubItem ( ProtoBuf.SubItemToken token, |
||
Flush ( |
Writes any buffered data (if possible) to the underlying stream. It is not always possible to fully flush, since some sequences may require values to be back-filled into the byte-stream. |
|
GetPosition ( |
||
GetTypeKey ( IKVM.Reflection.Type &type ) : int | ||
IDisposable ( ) : void | ||
IncrementedAndReset ( int length, |
||
PopRecursionStack ( ) : void | ||
SerializeType ( System type ) : string | ||
StartSubItem ( object instance, |
||
WriteHeaderCore ( int fieldNumber, WireType wireType, |
||
WriteInt32ToBuffer ( int value, byte buffer, int index ) : void | ||
WriteObject ( object value, int key, |
||
WriteUInt32Variant ( uint value, |
Writes an unsigned 32-bit integer to the stream; supported wire-types: Variant, Fixed32, Fixed64
|
|
WriteUInt64Variant ( ulong value, |
||
Zig ( int value ) : uint | ||
Zig ( long value ) : ulong |
public static AppendExtensionData ( IExtensible instance, |
||
instance | IExtensible | |
writer | ||
return | void |
public static EndSubItem ( ProtoBuf.SubItemToken token, |
||
token | ProtoBuf.SubItemToken | The token obtained from StartubItem. |
writer | The destination. | |
return | void |
public ProtoWriter ( Stream dest, ProtoBuf.Meta.TypeModel model, ProtoBuf.SerializationContext context ) : System | ||
dest | Stream | The destination stream |
model | ProtoBuf.Meta.TypeModel | The model to use for serialization; this can be null, but this will impair the ability to serialize sub-objects |
context | ProtoBuf.SerializationContext | Additional context about this serialization operation |
return | System |
public static SetPackedField ( int fieldNumber, |
||
fieldNumber | int | |
writer | ||
return | void |
public static StartSubItem ( object instance, |
||
instance | object | The instance to write. |
writer | The destination. | |
return | ProtoBuf.SubItemToken |
public static ThrowEnumException ( |
||
writer | ||
enumValue | object | |
return | void |
public static WriteBoolean ( bool value, |
||
value | bool | |
writer | ||
return | void |
public static WriteByte ( byte value, |
||
value | byte | |
writer | ||
return | void |
public static WriteBytes ( byte data, |
||
data | byte | |
writer | ||
return | void |
public static WriteBytes ( byte data, int offset, int length, |
||
data | byte | |
offset | int | |
length | int | |
writer | ||
return | void |
public static WriteDouble ( double value, |
||
value | double | |
writer | ||
return | void |
public static WriteFieldHeader ( int fieldNumber, WireType wireType, |
||
fieldNumber | int | |
wireType | WireType | |
writer | ||
return | void |
public static WriteInt16 ( short value, |
||
value | short | |
writer | ||
return | void |
public static WriteInt32 ( int value, |
||
value | int | |
writer | ||
return | void |
public static WriteInt64 ( long value, |
||
value | long | |
writer | ||
return | void |
public static WriteObject ( object value, int key, |
||
value | object | The object to write. |
key | int | The key that uniquely identifies the type within the model. |
writer | The destination. | |
return | void |
public static WriteRecursionSafeObject ( object value, int key, |
||
value | object | The object to write. |
key | int | The key that uniquely identifies the type within the model. |
writer | The destination. | |
return | void |
public static WriteSByte ( sbyte value, |
||
value | sbyte | |
writer | ||
return | void |
public static WriteSingle ( float value, |
||
value | float | |
writer | ||
return | void |
public static WriteString ( string value, |
||
value | string | |
writer | ||
return | void |
public static WriteType ( System value, |
||
value | System | |
writer | ||
return | void |
public static WriteUInt16 ( ushort value, |
||
value | ushort | |
writer | ||
return | void |
public static WriteUInt32 ( uint value, |
||
value | uint | |
writer | ||
return | void |
public static WriteUInt64 ( ulong value, |
||
value | ulong | |
writer | ||
return | void |