C# Class Shared.ByteUtils

Mostra file Open project: jbouzaglou/PetPigeonsESB

Public Methods

Method Description
ReadAsciiStringFromArray ( byte array, int offset, int length ) : string
ReadAsciiStringFromStream ( Stream data, int messageTypeLength ) : string
ReadInt ( byte buffer, int offset ) : int
ReadIntFromStream ( Stream stream ) : int
WriteInt ( byte buffer, int offset, int value ) : void

Method Details

ReadAsciiStringFromArray() public static method

public static ReadAsciiStringFromArray ( byte array, int offset, int length ) : string
array byte
offset int
length int
return string

ReadAsciiStringFromStream() public static method

public static ReadAsciiStringFromStream ( Stream data, int messageTypeLength ) : string
data Stream
messageTypeLength int
return string

ReadInt() public static method

public static ReadInt ( byte buffer, int offset ) : int
buffer byte
offset int
return int

ReadIntFromStream() public static method

public static ReadIntFromStream ( Stream stream ) : int
stream Stream
return int

WriteInt() public static method

public static WriteInt ( byte buffer, int offset, int value ) : void
buffer byte
offset int
value int
return void