C# 클래스 Quickbeam.ByteAccess.BaseByteAccess

파일 보기 프로젝트 열기: ChadSki/Quickbeam

보호된 프로퍼티들

프로퍼티 타입 설명
_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