C# Class MapAround.IO.StreamExtensions

ファイルを表示 Open project: gkrsu/maparound.core

Public Methods

Method Description
ReadDouble ( this stream ) : double

Reads a 8-byte signed double using the little-endian layout from the current stream and advances the current position of the stream by eight bytes.

ReadDoubleBE ( this stream ) : double

Reads a 8-byte signed double using the big-endian layout from the current stream and advances the current position of the stream by eight bytes.

ReadInt32 ( this stream ) : int

Reads a 4-byte integer using the little-endian layout from the current stream and advances the current position of the stream by four bytes.

ReadInt32BE ( this stream ) : int

Reads a 4-byte integer using the big-endian layout from the current stream and advances the current position of the stream by four bytes.

Method Details

ReadDouble() public static method

Reads a 8-byte signed double using the little-endian layout from the current stream and advances the current position of the stream by eight bytes.
public static ReadDouble ( this stream ) : double
stream this The input stream
return double

ReadDoubleBE() public static method

Reads a 8-byte signed double using the big-endian layout from the current stream and advances the current position of the stream by eight bytes.
public static ReadDoubleBE ( this stream ) : double
stream this The input stream
return double

ReadInt32() public static method

Reads a 4-byte integer using the little-endian layout from the current stream and advances the current position of the stream by four bytes.
public static ReadInt32 ( this stream ) : int
stream this The input stream
return int

ReadInt32BE() public static method

Reads a 4-byte integer using the big-endian layout from the current stream and advances the current position of the stream by four bytes.
public static ReadInt32BE ( this stream ) : int
stream this The input stream
return int