C# Class NetSerializer.Primitives

Afficher le fichier Open project: tomba/netserializer Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static GetReaderPrimitive ( Type type ) : MethodInfo
type System.Type
Résultat System.Reflection.MethodInfo

GetWritePrimitive() public static méthode

public static GetWritePrimitive ( Type type ) : MethodInfo
type System.Type
Résultat System.Reflection.MethodInfo

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, System.DateTime &value ) : void
stream Stream
value System.DateTime
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, bool &value ) : void
stream Stream
value bool
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, byte &value ) : void
stream Stream
value byte
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, char &value ) : void
stream Stream
value char
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, decimal &value ) : void
stream Stream
value decimal
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, double &value ) : void
stream Stream
value double
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, float &value ) : void
stream Stream
value float
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, int &value ) : void
stream Stream
value int
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, long &value ) : void
stream Stream
value long
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, sbyte &value ) : void
stream Stream
value sbyte
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, short &value ) : void
stream Stream
value short
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, string &value ) : void
stream Stream
value string
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, uint &value ) : void
stream Stream
value uint
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, ulong &value ) : void
stream Stream
value ulong
Résultat void

ReadPrimitive() public static méthode

public static ReadPrimitive ( Stream stream, ushort &value ) : void
stream Stream
value ushort
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, System.DateTime value ) : void
stream Stream
value System.DateTime
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, bool value ) : void
stream Stream
value bool
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, byte value ) : void
stream Stream
value byte
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, char value ) : void
stream Stream
value char
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, decimal value ) : void
stream Stream
value decimal
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, double value ) : void
stream Stream
value double
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, float value ) : void
stream Stream
value float
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, int value ) : void
stream Stream
value int
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, long value ) : void
stream Stream
value long
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, sbyte value ) : void
stream Stream
value sbyte
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, short value ) : void
stream Stream
value short
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, string value ) : void
stream Stream
value string
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, uint value ) : void
stream Stream
value uint
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, ulong value ) : void
stream Stream
value ulong
Résultat void

WritePrimitive() public static méthode

public static WritePrimitive ( Stream stream, ushort value ) : void
stream Stream
value ushort
Résultat void