C# 클래스 Lucene.Net.Analysis.Payloads.PayloadHelper

Utility methods for encoding payloads.
파일 보기 프로젝트 열기: synhershko/lucene.net 1 사용 예제들

공개 메소드들

메소드 설명
DecodeFloat ( byte bytes ) : float

Decode the payload that was encoded using encodeFloat(float)

NOTE: the length of the array must be at least offset + 4 long.

DecodeFloat ( byte bytes, int offset ) : float

Decode the payload that was encoded using encodeFloat(float)

NOTE: the length of the array must be at least offset + 4 long.

DecodeInt ( byte bytes, int offset ) : int
EncodeFloat ( float payload ) : byte[]
EncodeFloat ( float payload, byte data, int offset ) : byte[]
EncodeInt ( int payload ) : byte[]
EncodeInt ( int payload, byte data, int offset ) : byte[]

메소드 상세

DecodeFloat() 공개 정적인 메소드

Decode the payload that was encoded using encodeFloat(float)

NOTE: the length of the array must be at least offset + 4 long.

public static DecodeFloat ( byte bytes ) : float
bytes byte The bytes to decode
리턴 float

DecodeFloat() 공개 정적인 메소드

Decode the payload that was encoded using encodeFloat(float)

NOTE: the length of the array must be at least offset + 4 long.

public static DecodeFloat ( byte bytes, int offset ) : float
bytes byte The bytes to decode
offset int The offset into the array.
리턴 float

DecodeInt() 공개 정적인 메소드

public static DecodeInt ( byte bytes, int offset ) : int
bytes byte
offset int
리턴 int

EncodeFloat() 공개 정적인 메소드

public static EncodeFloat ( float payload ) : byte[]
payload float
리턴 byte[]

EncodeFloat() 공개 정적인 메소드

public static EncodeFloat ( float payload, byte data, int offset ) : byte[]
payload float
data byte
offset int
리턴 byte[]

EncodeInt() 공개 정적인 메소드

public static EncodeInt ( int payload ) : byte[]
payload int
리턴 byte[]

EncodeInt() 공개 정적인 메소드

public static EncodeInt ( int payload, byte data, int offset ) : byte[]
payload int
data byte
offset int
리턴 byte[]