C# 클래스 FSO.Files.Utils.IoBuffer

IOBuffer is a very basic wrapper over System.BinaryReader that inherits from IDisposable.
상속: IDisposable
파일 보기 프로젝트 열기: RHY3756547/FreeSO 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ByteOrder ByteOrder

공개 메소드들

메소드 설명
Dispose ( ) : void
FromBytes ( byte bytes ) : IoBuffer

Creates a new IOBuffer instance from a byte array.

FromBytes ( byte bytes, ByteOrder order ) : IoBuffer

Creates a new IOBuffer instance from a byte array, using a specified byte order.

FromStream ( Stream stream ) : IoBuffer

Creates a new IOBuffer instance from a stream.

FromStream ( Stream stream, ByteOrder order ) : IoBuffer

Creates a new IOBuffer instance from a stream, using a specified byte order.

IoBuffer ( Stream stream ) : System

Creates a new IOBuffer instance from a stream.

Mark ( ) : void
ReadByte ( ) : byte

Reads a byte from the current stream.

ReadBytes ( int num ) : byte[]

Reads a number of bytes from the current stream.

ReadBytes ( uint num ) : byte[]

Reads a number of bytes from the current stream.

ReadCString ( int num ) : string

Reads a number of ASCII characters from the current stream.

ReadCString ( int num, bool trimNull ) : string

Reads a number of ASCII characters from the current stream.

ReadInt16 ( ) : short

Reads a 16bit integer from the current stream.

ReadInt32 ( ) : int

Reads a 32bit integer from the current stream.

ReadLongPascalString ( ) : string

Reads a pascal string from the current stream, which is prefixed by a 16bit short.

ReadNullTerminatedString ( ) : string

Reads a C string from the current stream.

ReadNullTerminatedUTF8 ( ) : string
ReadPascalString ( ) : string

Reads a pascal string from the current stream, prefixed by a byte.

ReadUInt16 ( ) : ushort

Reads an unsigned 16bit integer from the current stream.

ReadUInt32 ( ) : uint

Reads an unsigned 32bit integer from the current stream.

ReadVarLen ( ) : uint

Reads a variable length unsigned integer from the current stream.

ReadVariableLengthPascalString ( ) : string

Reads a pascal string from the current stream.

Seek ( SeekOrigin origin, long offset ) : void

Seeks in the current stream.

SeekFromMark ( long numBytes ) : void

Seeks in the current stream from the current mark plus the number of bytes.

Skip ( long numBytes ) : void

Skips a number of bytes in the current stream, starting from the current position.

비공개 메소드들

메소드 설명
ReadFloat ( ) : float

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

FromBytes() 공개 정적인 메소드

Creates a new IOBuffer instance from a byte array.
public static FromBytes ( byte bytes ) : IoBuffer
bytes byte The byte array to use.
리턴 IoBuffer

FromBytes() 공개 정적인 메소드

Creates a new IOBuffer instance from a byte array, using a specified byte order.
public static FromBytes ( byte bytes, ByteOrder order ) : IoBuffer
bytes byte The byte array to use.
order ByteOrder Byte order to use.
리턴 IoBuffer

FromStream() 공개 정적인 메소드

Creates a new IOBuffer instance from a stream.
public static FromStream ( Stream stream ) : IoBuffer
stream Stream A stream.
리턴 IoBuffer

FromStream() 공개 정적인 메소드

Creates a new IOBuffer instance from a stream, using a specified byte order.
public static FromStream ( Stream stream, ByteOrder order ) : IoBuffer
stream Stream A stream.
order ByteOrder Byte order to use.
리턴 IoBuffer

IoBuffer() 공개 메소드

Creates a new IOBuffer instance from a stream.
public IoBuffer ( Stream stream ) : System
stream Stream
리턴 System

Mark() 공개 메소드

public Mark ( ) : void
리턴 void

ReadByte() 공개 메소드

Reads a byte from the current stream.
public ReadByte ( ) : byte
리턴 byte

ReadBytes() 공개 메소드

Reads a number of bytes from the current stream.
public ReadBytes ( int num ) : byte[]
num int Number of bytes to read.
리턴 byte[]

ReadBytes() 공개 메소드

Reads a number of bytes from the current stream.
public ReadBytes ( uint num ) : byte[]
num uint Number of bytes to read.
리턴 byte[]

ReadCString() 공개 메소드

Reads a number of ASCII characters from the current stream.
public ReadCString ( int num ) : string
num int The number of characters to read.
리턴 string

ReadCString() 공개 메소드

Reads a number of ASCII characters from the current stream.
public ReadCString ( int num, bool trimNull ) : string
num int The number of characters to read.
trimNull bool Trim the trailing 0?
리턴 string

ReadInt16() 공개 메소드

Reads a 16bit integer from the current stream.
public ReadInt16 ( ) : short
리턴 short

ReadInt32() 공개 메소드

Reads a 32bit integer from the current stream.
public ReadInt32 ( ) : int
리턴 int

ReadLongPascalString() 공개 메소드

Reads a pascal string from the current stream, which is prefixed by a 16bit short.
public ReadLongPascalString ( ) : string
리턴 string

ReadNullTerminatedString() 공개 메소드

Reads a C string from the current stream.
public ReadNullTerminatedString ( ) : string
리턴 string

ReadNullTerminatedUTF8() 공개 메소드

public ReadNullTerminatedUTF8 ( ) : string
리턴 string

ReadPascalString() 공개 메소드

Reads a pascal string from the current stream, prefixed by a byte.
public ReadPascalString ( ) : string
리턴 string

ReadUInt16() 공개 메소드

Reads an unsigned 16bit integer from the current stream.
public ReadUInt16 ( ) : ushort
리턴 ushort

ReadUInt32() 공개 메소드

Reads an unsigned 32bit integer from the current stream.
public ReadUInt32 ( ) : uint
리턴 uint

ReadVarLen() 공개 메소드

Reads a variable length unsigned integer from the current stream.
public ReadVarLen ( ) : uint
리턴 uint

ReadVariableLengthPascalString() 공개 메소드

Reads a pascal string from the current stream.
public ReadVariableLengthPascalString ( ) : string
리턴 string

Seek() 공개 메소드

Seeks in the current stream.
public Seek ( SeekOrigin origin, long offset ) : void
origin SeekOrigin Where to start from.
offset long The offset to seek to.
리턴 void

SeekFromMark() 공개 메소드

Seeks in the current stream from the current mark plus the number of bytes.
public SeekFromMark ( long numBytes ) : void
numBytes long The number of bytes to add to the offset (mark).
리턴 void

Skip() 공개 메소드

Skips a number of bytes in the current stream, starting from the current position.
public Skip ( long numBytes ) : void
numBytes long Number of bytes to skip.
리턴 void

프로퍼티 상세

ByteOrder 공개적으로 프로퍼티

public ByteOrder ByteOrder
리턴 ByteOrder