Class IdentityEncoder
Does nothing other than convert the char array to a byte array using the specified encoding.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Analysis.Payloads
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class IdentityEncoder : AbstractEncoder, IPayloadEncoder
Constructors
| Improve this Doc View SourceIdentityEncoder()
Declaration
public IdentityEncoder()
IdentityEncoder(Encoding)
Declaration
public IdentityEncoder(Encoding charset)
Parameters
Type | Name | Description |
---|---|---|
System.Text.Encoding | charset |
Fields
| Improve this Doc View Sourcem_charset
Declaration
protected Encoding m_charset
Field Value
Type | Description |
---|---|
System.Text.Encoding |
Methods
| Improve this Doc View SourceEncode(Char[], Int32, Int32)
Declaration
public override BytesRef Encode(char[] buffer, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | buffer | |
System.Int32 | offset | |
System.Int32 | length |
Returns
Type | Description |
---|---|
Lucene.Net.Util.BytesRef |