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

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

공개 프로퍼티들

프로퍼티 타입 설명
ByteOrder ByteOrder

공개 메소드들

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

Creates a new IOBuffer instance from a byte array.

FromBytes ( byte bytes, ByteOrder order ) : IoWriter

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

FromStream ( Stream stream ) : IoWriter

Creates a new IoWriter instance from a stream.

FromStream ( Stream stream, ByteOrder order ) : IoWriter

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

IoWriter ( Stream stream ) : System

Creates a new IOBuffer instance from a stream.

Seek ( SeekOrigin origin, long offset ) : void

Seeks in the current stream.

Skip ( long numBytes ) : void

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

WriteByte ( byte value ) : void

Writes a byte to the current stream.

WriteBytes ( byte bytes ) : void

Writes a number of bytes to the current stream.

WriteCString ( string value ) : void
WriteCString ( string value, int num ) : void

Writes a number of ASCII characters to the current stream.

WriteFloat ( float value ) : void

Writes a float to the current stream.

WriteInt16 ( short value ) : void

Writes a 16bit integer to the current stream.

WriteInt32 ( int value ) : void

Writes a 32bit integer to the current stream.

WriteLongPascalString ( string value ) : void

Writes a pascal string to the current stream, which is prefixed by a 16bit short.

WriteNullTerminatedString ( string value ) : void

Writes a C string to the current stream.

WritePascalString ( string value ) : void

Writes a pascal string to the current stream, prefixed by a byte.

WriteUInt16 ( ushort value ) : void

Writes an unsigned 16bit integer to the current stream.

WriteUInt32 ( uint value ) : void

Writes an unsigned 32bit integer from to current stream.

WriteVarLen ( uint value ) : void

Writes a variable length unsigned integer to the current stream

WriteVariableLengthPascalString ( string value ) : void

Writes a pascal string to the current stream.

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

FromBytes() 공개 정적인 메소드

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

FromBytes() 공개 정적인 메소드

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

FromStream() 공개 정적인 메소드

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

FromStream() 공개 정적인 메소드

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

IoWriter() 공개 메소드

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

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

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

WriteByte() 공개 메소드

Writes a byte to the current stream.
public WriteByte ( byte value ) : void
value byte
리턴 void

WriteBytes() 공개 메소드

Writes a number of bytes to the current stream.
public WriteBytes ( byte bytes ) : void
bytes byte Bytes to write out.
리턴 void

WriteCString() 공개 메소드

public WriteCString ( string value ) : void
value string
리턴 void

WriteCString() 공개 메소드

Writes a number of ASCII characters to the current stream.
public WriteCString ( string value, int num ) : void
value string The string to write.
num int The number of bytes to write into.
리턴 void

WriteFloat() 공개 메소드

Writes a float to the current stream.
public WriteFloat ( float value ) : void
value float
리턴 void

WriteInt16() 공개 메소드

Writes a 16bit integer to the current stream.
public WriteInt16 ( short value ) : void
value short
리턴 void

WriteInt32() 공개 메소드

Writes a 32bit integer to the current stream.
public WriteInt32 ( int value ) : void
value int
리턴 void

WriteLongPascalString() 공개 메소드

Writes a pascal string to the current stream, which is prefixed by a 16bit short.
public WriteLongPascalString ( string value ) : void
value string
리턴 void

WriteNullTerminatedString() 공개 메소드

Writes a C string to the current stream.
public WriteNullTerminatedString ( string value ) : void
value string
리턴 void

WritePascalString() 공개 메소드

Writes a pascal string to the current stream, prefixed by a byte.
public WritePascalString ( string value ) : void
value string
리턴 void

WriteUInt16() 공개 메소드

Writes an unsigned 16bit integer to the current stream.
public WriteUInt16 ( ushort value ) : void
value ushort
리턴 void

WriteUInt32() 공개 메소드

Writes an unsigned 32bit integer from to current stream.
public WriteUInt32 ( uint value ) : void
value uint
리턴 void

WriteVarLen() 공개 메소드

Writes a variable length unsigned integer to the current stream
public WriteVarLen ( uint value ) : void
value uint Value to write.
리턴 void

WriteVariableLengthPascalString() 공개 메소드

Writes a pascal string to the current stream.
public WriteVariableLengthPascalString ( string value ) : void
value string
리턴 void

프로퍼티 상세

ByteOrder 공개적으로 프로퍼티

public ByteOrder ByteOrder
리턴 ByteOrder