C# Класс Quickbeam.ByteAccess.BaseByteAccess

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_baOffset int
_baSize int

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
BaseByteAccess ( int offset, int size ) : System
readBytes ( int offset, int size ) : byte[]
writeBytes ( int offset, byte data ) : void

Описание методов

BaseByteAccess() защищенный Метод

protected BaseByteAccess ( int offset, int size ) : System
offset int
size int
Результат System

ReadBytes() публичный Метод

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
Результат byte[]

ReadInt16() публичный Метод

public ReadInt16 ( int offset ) : short
offset int
Результат short

ReadInt32() публичный Метод

public ReadInt32 ( int offset ) : int
offset int
Результат int

ReadSingle() публичный Метод

public ReadSingle ( int offset ) : float
offset int
Результат float

ReadString() публичный Метод

public ReadString ( int offset ) : string
offset int
Результат string

WriteBytes() публичный Метод

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
Результат void

WriteInt16() публичный Метод

public WriteInt16 ( int offset, short toWrite ) : void
offset int
toWrite short
Результат void

WriteInt32() публичный Метод

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
Результат void

WriteSingle() публичный Метод

public WriteSingle ( int offset, float toWrite ) : void
offset int
toWrite float
Результат void

WriteString() публичный Метод

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
Результат void

readBytes() защищенный абстрактный Метод

protected abstract readBytes ( int offset, int size ) : byte[]
offset int
size int
Результат byte[]

writeBytes() защищенный абстрактный Метод

protected abstract writeBytes ( int offset, byte data ) : void
offset int
data byte
Результат void

Описание свойств

_baOffset защищенное свойство

protected int _baOffset
Результат int

_baSize защищенное свойство

protected int _baSize
Результат int