18 using Lucene.Net.Index;
19 using Single = Lucene.Net.Support.Single;
21 namespace Lucene.Net.Analysis.Payloads
29 public override Payload Encode(
char[] buffer,
int offset,
int length)
32 float payload =
Single.Parse(
new string(buffer, offset, length));
33 byte[] bytes = PayloadHelper.EncodeFloat(payload);