C# 클래스 Microsoft.Protocols.TestSuites.Common.BufferReader

Used to read buffer.
파일 보기 프로젝트 열기: OfficeDev/Interop-TestSuites 1 사용 예제들

공개 메소드들

메소드 설명
BufferReader ( byte buffer ) : System

Initializes a new instance of the BufferReader class.

ReadASCIIString ( ) : string

Reads a string into ASCII format from the current position and advances the current position of the buffer by string length bytes.

ReadByte ( ) : byte

Reads a byte from the current position and advances the current position of the buffer by one byte.

ReadBytes ( uint length ) : byte[]

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

ReadBytes ( uint index, uint length ) : byte[]

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

ReadInt16 ( ) : short

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

ReadInt32 ( ) : int

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

ReadInt64 ( ) : long

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

ReadToEnd ( ) : byte[]

Read bytes from current position to the end of buffer.

ReadUInt16 ( ) : ushort

Reads a 2-byte unsigned integer from the current position and advances the current position of the buffer by 2 bytes.

ReadUInt32 ( ) : uint

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

ReadUInt64 ( ) : ulong

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

ReadUnicodeString ( ) : string

Reads a string into Unicode format from the current position and advances the current position of the buffer by 2 * string length bytes.

메소드 상세

BufferReader() 공개 메소드

Initializes a new instance of the BufferReader class.
public BufferReader ( byte buffer ) : System
buffer byte The buffer being read.
리턴 System

ReadASCIIString() 공개 메소드

Reads a string into ASCII format from the current position and advances the current position of the buffer by string length bytes.
public ReadASCIIString ( ) : string
리턴 string

ReadByte() 공개 메소드

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

ReadBytes() 공개 메소드

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

ReadBytes() 공개 메소드

Reads the specified number of bytes from the position of index into a byte array and advances the current position by that number of bytes.
public ReadBytes ( uint index, uint length ) : byte[]
index uint The position of bytes to read.
length uint The number of bytes to read.
리턴 byte[]

ReadInt16() 공개 메소드

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

ReadInt32() 공개 메소드

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

ReadInt64() 공개 메소드

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

ReadToEnd() 공개 메소드

Read bytes from current position to the end of buffer.
public ReadToEnd ( ) : byte[]
리턴 byte[]

ReadUInt16() 공개 메소드

Reads a 2-byte unsigned integer from the current position and advances the current position of the buffer by 2 bytes.
public ReadUInt16 ( ) : ushort
리턴 ushort

ReadUInt32() 공개 메소드

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

ReadUInt64() 공개 메소드

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

ReadUnicodeString() 공개 메소드

Reads a string into Unicode format from the current position and advances the current position of the buffer by 2 * string length bytes.
public ReadUnicodeString ( ) : string
리턴 string