C# 클래스 Gammtek.Conduit.IO.EndianReader

BinaryReader that supports reading and writing individual bits from the stream and reordering values based on Endian settings between the system and the stream.
상속: System.IO.BinaryReader
파일 보기 프로젝트 열기: ME3Explorer/ME3Explorer

공개 메소드들

메소드 설명
EndianReader ( BinaryReader source ) : System

Initializes a new instance of the EndianReader class using the source BinaryReader.

EndianReader ( Stream input ) : System

Initializes a new instance of the EndianReader class using stream input.

EndianReader ( Stream input, Encoding encoding ) : System

Initializes a new instance of the EndianReader class.

PeekChar ( ) : int

Returns the next available character and does not advance the byte or character position.

Read ( ) : int

Reads characters from the underlying stream and advances the current position of the stream in accordance with the Encoding used and the specific character being read from the stream.

Read ( byte buffer, int index, int count ) : int

Reads the specified number of bytes from the stream, starting from a specified point in the byte array.

Read ( char buffer, int index, int count ) : int

Reads the specified number of characters from the stream, starting from a specified point in the byte array.

ReadBoolean ( ) : bool

Reads a Boolean value from the current stream and advances the current position of the stream by one bit.

ReadByte ( ) : byte

Reads the next byte from the current stream and advances the current position of the stream by one byte.

ReadBytes ( int count ) : byte[]

Reads the specified number of bytes from the current stream into a byte array and advances the current position by that number of bytes.

ReadChar ( ) : char

Reads the next character from the current stream and advances the current position of the stream in accordance with the Encoding used and the specific character being read from the stream.

ReadChars ( int count ) : char[]

Reads the specified number of characters from the current stream, returns the data in a character array, and advances the current position in accordance with the Encoding used and the specific character being read from the stream.

ReadDouble ( ) : double

Reads an 8-byte floating point value from the current stream and advances the current position of the stream by eight bytes.

ReadInt16 ( ) : short

Reads a 2-byte signed integer from the current stream and advances the current position of the stream by two bytes.

ReadInt32 ( ) : int

Reads a 4-byte signed integer from the current stream and advances the current position of the stream by four bytes.

ReadInt64 ( ) : long

Reads an 8-byte signed integer from the current stream and advances the current position of the stream by eight bytes.

ReadSByte ( ) : sbyte

Reads a signed byte from this stream and advances the current position of the stream by one byte.

ReadSingle ( ) : float

Reads a 4-byte floating point value from the current stream and advances the current position of the stream by four bytes.

ReadString ( ) : string

Reads a string from the current stream. The string is prefixed with the length, encoded as an integer seven bits at a time.

ReadUInt16 ( ) : ushort

Reads a 2-byte unsigned integer from the current stream using little-endian encoding and advances the position of the stream by two bytes.

ReadUInt32 ( ) : uint

Reads a 4-byte unsigned integer from the current stream and advances the position of the stream by four bytes.

ReadUInt64 ( ) : ulong

Reads an 8-byte unsigned integer from the current stream and advances the position of the stream by eight bytes.

메소드 상세

EndianReader() 공개 메소드

Initializes a new instance of the EndianReader class using the source BinaryReader.
public EndianReader ( BinaryReader source ) : System
source System.IO.BinaryReader
리턴 System

EndianReader() 공개 메소드

Initializes a new instance of the EndianReader class using stream input.
public EndianReader ( Stream input ) : System
input Stream
리턴 System

EndianReader() 공개 메소드

Initializes a new instance of the EndianReader class.
public EndianReader ( Stream input, Encoding encoding ) : System
input Stream
encoding System.Text.Encoding
리턴 System

PeekChar() 공개 메소드

Returns the next available character and does not advance the byte or character position.
public PeekChar ( ) : int
리턴 int

Read() 공개 메소드

Reads characters from the underlying stream and advances the current position of the stream in accordance with the Encoding used and the specific character being read from the stream.
public Read ( ) : int
리턴 int

Read() 공개 메소드

Reads the specified number of bytes from the stream, starting from a specified point in the byte array.
public Read ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
리턴 int

Read() 공개 메소드

Reads the specified number of characters from the stream, starting from a specified point in the byte array.
public Read ( char buffer, int index, int count ) : int
buffer char
index int
count int
리턴 int

ReadBoolean() 공개 메소드

Reads a Boolean value from the current stream and advances the current position of the stream by one bit.
public ReadBoolean ( ) : bool
리턴 bool

ReadByte() 공개 메소드

Reads the next byte from the current stream and advances the current position of the stream by one byte.
public ReadByte ( ) : byte
리턴 byte

ReadBytes() 공개 메소드

Reads the specified number of bytes from the current stream into a byte array and advances the current position by that number of bytes.
public ReadBytes ( int count ) : byte[]
count int /// The number of bytes to read. ///
리턴 byte[]

ReadChar() 공개 메소드

Reads the next character from the current stream and advances the current position of the stream in accordance with the Encoding used and the specific character being read from the stream.
public ReadChar ( ) : char
리턴 char

ReadChars() 공개 메소드

Reads the specified number of characters from the current stream, returns the data in a character array, and advances the current position in accordance with the Encoding used and the specific character being read from the stream.
public ReadChars ( int count ) : char[]
count int /// The number of characters to read. ///
리턴 char[]

ReadDouble() 공개 메소드

Reads an 8-byte floating point value from the current stream and advances the current position of the stream by eight bytes.
public ReadDouble ( ) : double
리턴 double

ReadInt16() 공개 메소드

Reads a 2-byte signed integer from the current stream and advances the current position of the stream by two bytes.
public ReadInt16 ( ) : short
리턴 short

ReadInt32() 공개 메소드

Reads a 4-byte signed integer from the current stream and advances the current position of the stream by four bytes.
public ReadInt32 ( ) : int
리턴 int

ReadInt64() 공개 메소드

Reads an 8-byte signed integer from the current stream and advances the current position of the stream by eight bytes.
public ReadInt64 ( ) : long
리턴 long

ReadSByte() 공개 메소드

Reads a signed byte from this stream and advances the current position of the stream by one byte.
public ReadSByte ( ) : sbyte
리턴 sbyte

ReadSingle() 공개 메소드

Reads a 4-byte floating point value from the current stream and advances the current position of the stream by four bytes.
public ReadSingle ( ) : float
리턴 float

ReadString() 공개 메소드

Reads a string from the current stream. The string is prefixed with the length, encoded as an integer seven bits at a time.
public ReadString ( ) : string
리턴 string

ReadUInt16() 공개 메소드

Reads a 2-byte unsigned integer from the current stream using little-endian encoding and advances the position of the stream by two bytes.
public ReadUInt16 ( ) : ushort
리턴 ushort

ReadUInt32() 공개 메소드

Reads a 4-byte unsigned integer from the current stream and advances the position of the stream by four bytes.
public ReadUInt32 ( ) : uint
리턴 uint

ReadUInt64() 공개 메소드

Reads an 8-byte unsigned integer from the current stream and advances the position of the stream by eight bytes.
public ReadUInt64 ( ) : ulong
리턴 ulong