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

Utility methods for encoding payloads.
Afficher le fichier Open project: synhershko/lucene.net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat float

DecodeFloat() public static méthode

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.
Résultat float

DecodeInt() public static méthode

public static DecodeInt ( byte bytes, int offset ) : int
bytes byte
offset int
Résultat int

EncodeFloat() public static méthode

public static EncodeFloat ( float payload ) : byte[]
payload float
Résultat byte[]

EncodeFloat() public static méthode

public static EncodeFloat ( float payload, byte data, int offset ) : byte[]
payload float
data byte
offset int
Résultat byte[]

EncodeInt() public static méthode

public static EncodeInt ( int payload ) : byte[]
payload int
Résultat byte[]

EncodeInt() public static méthode

public static EncodeInt ( int payload, byte data, int offset ) : byte[]
payload int
data byte
offset int
Résultat byte[]