C# Class Lucene.Net.Analysis.Payloads.PayloadHelper

Utility methods for encoding payloads.
Datei anzeigen Open project: synhershko/lucene.net Class Usage Examples

Public Methods

Method Description
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[]

Method Details

DecodeFloat() public static method

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
return float

DecodeFloat() public static method

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.
return float

DecodeInt() public static method

public static DecodeInt ( byte bytes, int offset ) : int
bytes byte
offset int
return int

EncodeFloat() public static method

public static EncodeFloat ( float payload ) : byte[]
payload float
return byte[]

EncodeFloat() public static method

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

EncodeInt() public static method

public static EncodeInt ( int payload ) : byte[]
payload int
return byte[]

EncodeInt() public static method

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