C# 클래스 Helios.Buffers.ByteBufferUtil

Utility class for working with direct ByteBuffer instances
파일 보기 프로젝트 열기: helios-io/helios 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

DecodeString() 공개 정적인 메소드

public static DecodeString ( IByteBuf src, int readerIndex, int len, Encoding encoding ) : string
src IByteBuf
readerIndex int
len int
encoding System.Text.Encoding
리턴 string

HexDump() 공개 정적인 메소드

public static HexDump ( IByteBuf buffer, int bytesPerLine = 16 ) : string
buffer IByteBuf
bytesPerLine int
리턴 string

HexDump() 공개 정적인 메소드

public static HexDump ( byte bytes, int bytesPerLine = 16 ) : string
bytes byte
bytesPerLine int
리턴 string

SwapInt() 공개 정적인 메소드

Toggles the endianness of the specified 32-bit integer.
public static SwapInt ( int value ) : int
value int
리턴 int

SwapLong() 공개 정적인 메소드

Toggles the endianness of the specified 64-bit long integer.
public static SwapLong ( long value ) : long
value long
리턴 long

SwapShort() 공개 정적인 메소드

Toggles the endianness of the specified 16-bit integer.
public static SwapShort ( short value ) : short
value short
리턴 short