C# Class FlatBuffers.ByteBuffer

Class to mimick Java's ByteBuffer which is used heavily in Flatbuffers
Afficher le fichier Open project: google/flatbuffers Class Usage Examples

Méthodes publiques

Méthode Description
ByteBuffer ( byte buffer ) : System
ByteBuffer ( byte buffer, int pos ) : System
Get ( int index ) : byte
GetDouble ( int offset ) : double
GetFloat ( int offset ) : float
GetInt ( int offset ) : int
GetLong ( int offset ) : long
GetSbyte ( int index ) : sbyte
GetShort ( int offset ) : short
GetUint ( int offset ) : uint
GetUlong ( int offset ) : ulong
GetUshort ( int offset ) : ushort
Put ( int offset, byte value ) : void
PutByte ( int offset, byte value ) : void
PutByte ( int offset, byte value, int count ) : void
PutDouble ( int offset, double value ) : void
PutFloat ( int offset, float value ) : void
PutInt ( int offset, int value ) : void
PutLong ( int offset, long value ) : void
PutSbyte ( int offset, sbyte value ) : void
PutShort ( int offset, short value ) : void
PutUint ( int offset, uint value ) : void
PutUlong ( int offset, ulong value ) : void
PutUshort ( int offset, ushort value ) : void
Reset ( ) : void
ReverseBytes ( uint input ) : uint
ReverseBytes ( ulong input ) : ulong
ReverseBytes ( ushort input ) : ushort

Méthodes protégées

Méthode Description
ReadLittleEndian ( int offset, int count ) : ulong
WriteLittleEndian ( int offset, int count, ulong data ) : void

Private Methods

Méthode Description
AssertOffsetAndLength ( int offset, int length ) : void

Method Details

ByteBuffer() public méthode

public ByteBuffer ( byte buffer ) : System
buffer byte
Résultat System

ByteBuffer() public méthode

public ByteBuffer ( byte buffer, int pos ) : System
buffer byte
pos int
Résultat System

Get() public méthode

public Get ( int index ) : byte
index int
Résultat byte

GetDouble() public méthode

public GetDouble ( int offset ) : double
offset int
Résultat double

GetFloat() public méthode

public GetFloat ( int offset ) : float
offset int
Résultat float

GetInt() public méthode

public GetInt ( int offset ) : int
offset int
Résultat int

GetLong() public méthode

public GetLong ( int offset ) : long
offset int
Résultat long

GetSbyte() public méthode

public GetSbyte ( int index ) : sbyte
index int
Résultat sbyte

GetShort() public méthode

public GetShort ( int offset ) : short
offset int
Résultat short

GetUint() public méthode

public GetUint ( int offset ) : uint
offset int
Résultat uint

GetUlong() public méthode

public GetUlong ( int offset ) : ulong
offset int
Résultat ulong

GetUshort() public méthode

public GetUshort ( int offset ) : ushort
offset int
Résultat ushort

Put() public méthode

public Put ( int offset, byte value ) : void
offset int
value byte
Résultat void

PutByte() public méthode

public PutByte ( int offset, byte value ) : void
offset int
value byte
Résultat void

PutByte() public méthode

public PutByte ( int offset, byte value, int count ) : void
offset int
value byte
count int
Résultat void

PutDouble() public méthode

public PutDouble ( int offset, double value ) : void
offset int
value double
Résultat void

PutFloat() public méthode

public PutFloat ( int offset, float value ) : void
offset int
value float
Résultat void

PutInt() public méthode

public PutInt ( int offset, int value ) : void
offset int
value int
Résultat void

PutLong() public méthode

public PutLong ( int offset, long value ) : void
offset int
value long
Résultat void

PutSbyte() public méthode

public PutSbyte ( int offset, sbyte value ) : void
offset int
value sbyte
Résultat void

PutShort() public méthode

public PutShort ( int offset, short value ) : void
offset int
value short
Résultat void

PutUint() public méthode

public PutUint ( int offset, uint value ) : void
offset int
value uint
Résultat void

PutUlong() public méthode

public PutUlong ( int offset, ulong value ) : void
offset int
value ulong
Résultat void

PutUshort() public méthode

public PutUshort ( int offset, ushort value ) : void
offset int
value ushort
Résultat void

ReadLittleEndian() protected méthode

protected ReadLittleEndian ( int offset, int count ) : ulong
offset int
count int
Résultat ulong

Reset() public méthode

public Reset ( ) : void
Résultat void

ReverseBytes() static public méthode

static public ReverseBytes ( uint input ) : uint
input uint
Résultat uint

ReverseBytes() static public méthode

static public ReverseBytes ( ulong input ) : ulong
input ulong
Résultat ulong

ReverseBytes() static public méthode

static public ReverseBytes ( ushort input ) : ushort
input ushort
Résultat ushort

WriteLittleEndian() protected méthode

protected WriteLittleEndian ( int offset, int count, ulong data ) : void
offset int
count int
data ulong
Résultat void