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
 
  
  
    Inheritance
    System.Object
    
    ByteArrayDataInput
   
  
  
  Assembly: Lucene.Net.dll
  
  
    public sealed class ByteArrayDataInput : DataInput
   
  Constructors
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public ByteArrayDataInput()
   
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public ByteArrayDataInput(byte[] bytes)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Byte[] | 
        bytes | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  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 Source
  
  
  
  
  
  Declaration
  
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public int Length { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public int Position { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public override byte ReadByte()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Byte | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  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 Source
  
  
  
  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 Source
  
  
  
  NOTE: this was readInt() in Lucene
 
  
  Declaration
  
    public override int ReadInt32()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  NOTE: this was readLong() in Lucene
 
  
  Declaration
  
    public override long ReadInt64()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int64 | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  NOTE: this was readVInt() in Lucene
 
  
  Declaration
  
    public override int ReadVInt32()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  NOTE: this was readVLong() in Lucene
 
  
  Declaration
  
    public override long ReadVInt64()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int64 | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public void Reset(byte[] bytes)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Byte[] | 
        bytes | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public void Reset(byte[] bytes, int offset, int len)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Byte[] | 
        bytes | 
         | 
      
      
        | System.Int32 | 
        offset | 
         | 
      
      
        | System.Int32 | 
        len | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  NOTE: sets pos to 0, which is not right if you had
called reset w/ non-zero offset!!
 
  
  Declaration
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public override void SkipBytes(long count)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int64 | 
        count | 
         | 
      
    
  
  Overrides