C# 클래스 Kafka.Client.Utils.BitWorks

Utilty class for managing bits and bytes.
파일 보기 프로젝트 열기: precog/kafka

공개 메소드들

메소드 설명
GetBytesReversed ( int value ) : byte[]

Converts the value to bytes and reverses them.

GetBytesReversed ( long value ) : byte[]

Converts the value to bytes and reverses them.

GetBytesReversed ( short value ) : byte[]

Converts the value to bytes and reverses them.

ReverseBytes ( byte inArray ) : byte[]

Reverse the position of an array of bytes.

메소드 상세

GetBytesReversed() 공개 정적인 메소드

Converts the value to bytes and reverses them.
public static GetBytesReversed ( int value ) : byte[]
value int The value to convert to bytes.
리턴 byte[]

GetBytesReversed() 공개 정적인 메소드

Converts the value to bytes and reverses them.
public static GetBytesReversed ( long value ) : byte[]
value long The value to convert to bytes.
리턴 byte[]

GetBytesReversed() 공개 정적인 메소드

Converts the value to bytes and reverses them.
public static GetBytesReversed ( short value ) : byte[]
value short The value to convert to bytes.
리턴 byte[]

ReverseBytes() 공개 정적인 메소드

Reverse the position of an array of bytes.
public static ReverseBytes ( byte inArray ) : byte[]
inArray byte /// The array to reverse. If null or zero-length then the returned array will be null. ///
리턴 byte[]