C# Class NetSerializer.Primitives

Mostrar archivo Open project: tomba/netserializer Class Usage Examples

Public Methods

Method Description
GetReaderPrimitive ( Type type ) : MethodInfo
GetWritePrimitive ( Type type ) : MethodInfo
ReadPrimitive ( Stream stream, System.DateTime &value ) : void
ReadPrimitive ( Stream stream, bool &value ) : void
ReadPrimitive ( Stream stream, byte &value ) : void
ReadPrimitive ( Stream stream, char &value ) : void
ReadPrimitive ( Stream stream, decimal &value ) : void
ReadPrimitive ( Stream stream, double &value ) : void
ReadPrimitive ( Stream stream, float &value ) : void
ReadPrimitive ( Stream stream, int &value ) : void
ReadPrimitive ( Stream stream, long &value ) : void
ReadPrimitive ( Stream stream, sbyte &value ) : void
ReadPrimitive ( Stream stream, short &value ) : void
ReadPrimitive ( Stream stream, string &value ) : void
ReadPrimitive ( Stream stream, uint &value ) : void
ReadPrimitive ( Stream stream, ulong &value ) : void
ReadPrimitive ( Stream stream, ushort &value ) : void
WritePrimitive ( Stream stream, System.DateTime value ) : void
WritePrimitive ( Stream stream, bool value ) : void
WritePrimitive ( Stream stream, byte value ) : void
WritePrimitive ( Stream stream, char value ) : void
WritePrimitive ( Stream stream, decimal value ) : void
WritePrimitive ( Stream stream, double value ) : void
WritePrimitive ( Stream stream, float value ) : void
WritePrimitive ( Stream stream, int value ) : void
WritePrimitive ( Stream stream, long value ) : void
WritePrimitive ( Stream stream, sbyte value ) : void
WritePrimitive ( Stream stream, short value ) : void
WritePrimitive ( Stream stream, string value ) : void
WritePrimitive ( Stream stream, uint value ) : void
WritePrimitive ( Stream stream, ulong value ) : void
WritePrimitive ( Stream stream, ushort value ) : void

Private Methods

Method Description
DecodeZigZag32 ( uint n ) : int
DecodeZigZag64 ( ulong n ) : long
EncodeZigZag32 ( int n ) : uint
EncodeZigZag64 ( long n ) : ulong
ReadVarint32 ( Stream stream ) : uint
ReadVarint64 ( Stream stream ) : ulong
WriteVarint32 ( Stream stream, uint value ) : void
WriteVarint64 ( Stream stream, ulong value ) : void

Method Details

GetReaderPrimitive() public static method

public static GetReaderPrimitive ( Type type ) : MethodInfo
type System.Type
return System.Reflection.MethodInfo

GetWritePrimitive() public static method

public static GetWritePrimitive ( Type type ) : MethodInfo
type System.Type
return System.Reflection.MethodInfo

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, System.DateTime &value ) : void
stream Stream
value System.DateTime
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, bool &value ) : void
stream Stream
value bool
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, byte &value ) : void
stream Stream
value byte
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, char &value ) : void
stream Stream
value char
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, decimal &value ) : void
stream Stream
value decimal
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, double &value ) : void
stream Stream
value double
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, float &value ) : void
stream Stream
value float
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, int &value ) : void
stream Stream
value int
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, long &value ) : void
stream Stream
value long
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, sbyte &value ) : void
stream Stream
value sbyte
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, short &value ) : void
stream Stream
value short
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, string &value ) : void
stream Stream
value string
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, uint &value ) : void
stream Stream
value uint
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, ulong &value ) : void
stream Stream
value ulong
return void

ReadPrimitive() public static method

public static ReadPrimitive ( Stream stream, ushort &value ) : void
stream Stream
value ushort
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, System.DateTime value ) : void
stream Stream
value System.DateTime
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, bool value ) : void
stream Stream
value bool
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, byte value ) : void
stream Stream
value byte
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, char value ) : void
stream Stream
value char
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, decimal value ) : void
stream Stream
value decimal
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, double value ) : void
stream Stream
value double
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, float value ) : void
stream Stream
value float
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, int value ) : void
stream Stream
value int
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, long value ) : void
stream Stream
value long
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, sbyte value ) : void
stream Stream
value sbyte
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, short value ) : void
stream Stream
value short
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, string value ) : void
stream Stream
value string
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, uint value ) : void
stream Stream
value uint
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, ulong value ) : void
stream Stream
value ulong
return void

WritePrimitive() public static method

public static WritePrimitive ( Stream stream, ushort value ) : void
stream Stream
value ushort
return void