C# 클래스 Unplugged.IbmBits.BinaryReaderExtensionMethods

파일 보기 프로젝트 열기: jfoshee/UnpluggedIbmBits

공개 메소드들

메소드 설명
ReadInt16BigEndian ( this reader ) : Int16

Reads a 16-bit integer from the stream that has been encoded as big endian.

ReadInt32BigEndian ( this reader ) : Int32

Reads a 32-bit integer from the stream that has been encoded as big endian.

ReadPackedDecimalIbm ( this reader, byte storageLength, byte scale ) : decimal

Reads a pack decimal from the stream

ReadSingleIbm ( this reader ) : float

Reads a single precision 32-bit floating point number from the stream that has been encoded in IBM System/360 Floating Point format

ReadStringEbcdic ( this reader, int count ) : string

Reads the requested number of 8-bit EBCDIC encoded characters from the stream and converts them to a Unicode string.

비공개 메소드들

메소드 설명
ReadBytes ( BinaryReader reader, int count ) : byte[]

메소드 상세

ReadInt16BigEndian() 공개 정적인 메소드

Reads a 16-bit integer from the stream that has been encoded as big endian.
public static ReadInt16BigEndian ( this reader ) : Int16
reader this
리턴 System.Int16

ReadInt32BigEndian() 공개 정적인 메소드

Reads a 32-bit integer from the stream that has been encoded as big endian.
public static ReadInt32BigEndian ( this reader ) : Int32
reader this
리턴 System.Int32

ReadPackedDecimalIbm() 공개 정적인 메소드

Reads a pack decimal from the stream
public static ReadPackedDecimalIbm ( this reader, byte storageLength, byte scale ) : decimal
reader this The reader from which the bytes will be read
storageLength byte The total storage length of the packed decimal
scale byte The scale of the decimal (number of number after the .)
리턴 decimal

ReadSingleIbm() 공개 정적인 메소드

Reads a single precision 32-bit floating point number from the stream that has been encoded in IBM System/360 Floating Point format
public static ReadSingleIbm ( this reader ) : float
reader this
리턴 float

ReadStringEbcdic() 공개 정적인 메소드

Reads the requested number of 8-bit EBCDIC encoded characters from the stream and converts them to a Unicode string.
public static ReadStringEbcdic ( this reader, int count ) : string
reader this
count int The number of bytes to read
리턴 string