C# Class Helios.Buffers.ByteBufferUtil

Utility class for working with direct ByteBuffer instances
Afficher le fichier Open project: helios-io/helios Class Usage Examples

Méthodes publiques

Méthode Description
DecodeString ( IByteBuf src, int readerIndex, int len, Encoding encoding ) : string
HexDump ( IByteBuf buffer, int bytesPerLine = 16 ) : string
HexDump ( byte bytes, int bytesPerLine = 16 ) : string
SwapInt ( int value ) : int

Toggles the endianness of the specified 32-bit integer.

SwapLong ( long value ) : long

Toggles the endianness of the specified 64-bit long integer.

SwapShort ( short value ) : short

Toggles the endianness of the specified 16-bit integer.

Method Details

DecodeString() public static méthode

public static DecodeString ( IByteBuf src, int readerIndex, int len, Encoding encoding ) : string
src IByteBuf
readerIndex int
len int
encoding System.Text.Encoding
Résultat string

HexDump() public static méthode

public static HexDump ( IByteBuf buffer, int bytesPerLine = 16 ) : string
buffer IByteBuf
bytesPerLine int
Résultat string

HexDump() public static méthode

public static HexDump ( byte bytes, int bytesPerLine = 16 ) : string
bytes byte
bytesPerLine int
Résultat string

SwapInt() public static méthode

Toggles the endianness of the specified 32-bit integer.
public static SwapInt ( int value ) : int
value int
Résultat int

SwapLong() public static méthode

Toggles the endianness of the specified 64-bit long integer.
public static SwapLong ( long value ) : long
value long
Résultat long

SwapShort() public static méthode

Toggles the endianness of the specified 16-bit integer.
public static SwapShort ( short value ) : short
value short
Résultat short