Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class PackedDataInput

    A DataInput wrapper to read unaligned, variable-length packed integers. This API is much slower than the PackedInt32s fixed-length API but can be convenient to save space.

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Inheritance
    object
    PackedDataInput
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util.Packed
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class PackedDataInput

    Constructors

    PackedDataInput(DataInput)

    Create a new instance that wraps in.

    Declaration
    public PackedDataInput(DataInput @in)
    Parameters
    Type Name Description
    DataInput in
    See Also
    PackedDataOutput

    Methods

    ReadInt64(int)

    Read the next long using exactly bitsPerValue bits.

    NOTE: This was readLong() in Lucene.
    Declaration
    public long ReadInt64(int bitsPerValue)
    Parameters
    Type Name Description
    int bitsPerValue
    Returns
    Type Description
    long
    See Also
    PackedDataOutput

    SkipToNextByte()

    If there are pending bits (at most 7), they will be ignored and the next value will be read starting at the next byte.

    Declaration
    public void SkipToNextByte()
    See Also
    PackedDataOutput

    See Also

    PackedDataOutput
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.