C# Class Wire.Extensions.StreamEx

显示文件 Open project: akkadotnet/Wire

Public Methods

Method Description
ReadInt32 ( this self, DeserializerSession session ) : int
ReadLengthEncodedByteArray ( this self, DeserializerSession session ) : byte[]
ReadObject ( this stream, DeserializerSession session ) : object
ReadString ( this stream, DeserializerSession session ) : string
ReadUInt16 ( this self, DeserializerSession session ) : uint
ReadVarint32 ( this stream ) : uint
ReadVarint64 ( this stream ) : ulong
Write ( this self, byte bytes ) : void
WriteLengthEncodedByteArray ( this self, byte bytes, SerializerSession session ) : void
WriteObject ( this stream, object value, Type valueType, ValueSerializer valueSerializer, bool preserveObjectReferences, SerializerSession session ) : void
WriteObjectWithManifest ( this stream, object value, SerializerSession session ) : void
WriteVarint32 ( this stream, uint value ) : void
WriteVarint64 ( this stream, ulong value ) : void

Method Details

ReadInt32() public static method

public static ReadInt32 ( this self, DeserializerSession session ) : int
self this
session DeserializerSession
return int

ReadLengthEncodedByteArray() public static method

public static ReadLengthEncodedByteArray ( this self, DeserializerSession session ) : byte[]
self this
session DeserializerSession
return byte[]

ReadObject() public static method

public static ReadObject ( this stream, DeserializerSession session ) : object
stream this
session DeserializerSession
return object

ReadString() public static method

public static ReadString ( this stream, DeserializerSession session ) : string
stream this
session DeserializerSession
return string

ReadUInt16() public static method

public static ReadUInt16 ( this self, DeserializerSession session ) : uint
self this
session DeserializerSession
return uint

ReadVarint32() public static method

public static ReadVarint32 ( this stream ) : uint
stream this
return uint

ReadVarint64() public static method

public static ReadVarint64 ( this stream ) : ulong
stream this
return ulong

Write() public static method

public static Write ( this self, byte bytes ) : void
self this
bytes byte
return void

WriteLengthEncodedByteArray() public static method

public static WriteLengthEncodedByteArray ( this self, byte bytes, SerializerSession session ) : void
self this
bytes byte
session SerializerSession
return void

WriteObject() public static method

public static WriteObject ( this stream, object value, Type valueType, ValueSerializer valueSerializer, bool preserveObjectReferences, SerializerSession session ) : void
stream this
value object
valueType System.Type
valueSerializer Wire.ValueSerializers.ValueSerializer
preserveObjectReferences bool
session SerializerSession
return void

WriteObjectWithManifest() public static method

public static WriteObjectWithManifest ( this stream, object value, SerializerSession session ) : void
stream this
value object
session SerializerSession
return void

WriteVarint32() public static method

public static WriteVarint32 ( this stream, uint value ) : void
stream this
value uint
return void

WriteVarint64() public static method

public static WriteVarint64 ( this stream, ulong value ) : void
stream this
value ulong
return void