C# Class Quickbeam.ByteAccess.BaseByteAccess

Afficher le fichier Open project: ChadSki/Quickbeam

Protected Properties

Свойство Type Description
_baOffset int
_baSize int

Méthodes publiques

Méthode Description
ReadBytes ( int offset, int size ) : byte[]

Performs bounds-checking, then reads bytes from the mapfile

ReadInt16 ( int offset ) : short
ReadInt32 ( int offset ) : int
ReadSingle ( int offset ) : float
ReadString ( int offset ) : string
WriteBytes ( int offset, byte data ) : void

Performs bounds-checking, then writes bytes to the mapfile

WriteInt16 ( int offset, short toWrite ) : void
WriteInt32 ( int offset, int toWrite ) : void

Writes an int to the mapfile, handling endianness

WriteSingle ( int offset, float toWrite ) : void
WriteString ( int offset, string toWrite ) : void

Writes a string, as ascii, to the specified location in the map.

Méthodes protégées

Méthode Description
BaseByteAccess ( int offset, int size ) : System
readBytes ( int offset, int size ) : byte[]
writeBytes ( int offset, byte data ) : void

Method Details

BaseByteAccess() protected méthode

protected BaseByteAccess ( int offset, int size ) : System
offset int
size int
Résultat System

ReadBytes() public méthode

Performs bounds-checking, then reads bytes from the mapfile
public ReadBytes ( int offset, int size ) : byte[]
offset int The offset in bytes to write to
size int The number of bytes to read
Résultat byte[]

ReadInt16() public méthode

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

ReadInt32() public méthode

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

ReadSingle() public méthode

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

ReadString() public méthode

public ReadString ( int offset ) : string
offset int
Résultat string

WriteBytes() public méthode

Performs bounds-checking, then writes bytes to the mapfile
public WriteBytes ( int offset, byte data ) : void
offset int The offset in bytes to write to
data byte The data to write
Résultat void

WriteInt16() public méthode

public WriteInt16 ( int offset, short toWrite ) : void
offset int
toWrite short
Résultat void

WriteInt32() public méthode

Writes an int to the mapfile, handling endianness
public WriteInt32 ( int offset, int toWrite ) : void
offset int The offset in bytes to write to
toWrite int The int to write
Résultat void

WriteSingle() public méthode

public WriteSingle ( int offset, float toWrite ) : void
offset int
toWrite float
Résultat void

WriteString() public méthode

Writes a string, as ascii, to the specified location in the map.
public WriteString ( int offset, string toWrite ) : void
offset int The offset in bytes to write to
toWrite string The string to write
Résultat void

readBytes() protected abstract méthode

protected abstract readBytes ( int offset, int size ) : byte[]
offset int
size int
Résultat byte[]

writeBytes() protected abstract méthode

protected abstract writeBytes ( int offset, byte data ) : void
offset int
data byte
Résultat void

Property Details

_baOffset protected_oe property

protected int _baOffset
Résultat int

_baSize protected_oe property

protected int _baSize
Résultat int