Class ByteArrayDataInput
DataInput backed by a byte array. WARNING: this class omits all low-level checks.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
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.Store
Assembly: Lucene.Net.dll
Syntax
public sealed class ByteArrayDataInput : DataInputConstructors
| Improve this Doc View SourceByteArrayDataInput()
Declaration
public ByteArrayDataInput()ByteArrayDataInput(Byte[])
Declaration
public ByteArrayDataInput(byte[] bytes)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Byte[] | bytes | 
ByteArrayDataInput(Byte[], Int32, Int32)
Declaration
public ByteArrayDataInput(byte[] bytes, int offset, int len)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Byte[] | bytes | |
| System.Int32 | offset | |
| System.Int32 | len | 
Properties
| Improve this Doc View SourceEof
Declaration
public bool Eof { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Length
Declaration
public int Length { get; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Position
Declaration
public int Position { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Methods
| Improve this Doc View SourceReadByte()
Declaration
public override byte ReadByte()Returns
| Type | Description | 
|---|---|
| System.Byte | 
Overrides
| Improve this Doc View SourceReadBytes(Byte[], Int32, Int32)
Declaration
public override void ReadBytes(byte[] b, int offset, int len)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Byte[] | b | |
| System.Int32 | offset | |
| System.Int32 | len | 
Overrides
| Improve this Doc View SourceReadInt16()
LUCENENET NOTE: Important - always cast to ushort (System.UInt16) before using to ensure the value is positive!
NOTE: this was readShort() in Lucene
Declaration
public override short ReadInt16()Returns
| Type | Description | 
|---|---|
| System.Int16 | 
Overrides
| Improve this Doc View SourceReadInt32()
NOTE: this was readInt() in Lucene
Declaration
public override int ReadInt32()Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Overrides
| Improve this Doc View SourceReadInt64()
NOTE: this was readLong() in Lucene
Declaration
public override long ReadInt64()Returns
| Type | Description | 
|---|---|
| System.Int64 | 
Overrides
| Improve this Doc View SourceReadVInt32()
NOTE: this was readVInt() in Lucene
Declaration
public override int ReadVInt32()Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Overrides
| Improve this Doc View SourceReadVInt64()
NOTE: this was readVLong() in Lucene
Declaration
public override long ReadVInt64()Returns
| Type | Description | 
|---|---|
| System.Int64 | 
Overrides
| Improve this Doc View SourceReset(Byte[])
Declaration
public void Reset(byte[] bytes)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Byte[] | bytes | 
Reset(Byte[], Int32, Int32)
Declaration
public void Reset(byte[] bytes, int offset, int len)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Byte[] | bytes | |
| System.Int32 | offset | |
| System.Int32 | len | 
Rewind()
NOTE: sets pos to 0, which is not right if you had called reset w/ non-zero offset!!
Declaration
public void Rewind()SkipBytes(Int64)
Declaration
public override void SkipBytes(long count)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int64 | count |