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.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    PackedDataInput
    Namespace: Lucene.Net.Util.Packed
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class PackedDataInput : object

    Constructors

    | Improve this Doc View Source

    PackedDataInput(DataInput)

    Create a new instance that wraps in.

    Declaration
    public PackedDataInput(DataInput in)
    Parameters
    Type Name Description
    DataInput in

    Methods

    | Improve this Doc View Source

    ReadInt64(Int32)

    Read the next using exactly bitsPerValue bits.

    NOTE: This was readLong() in Lucene.

    Declaration
    public long ReadInt64(int bitsPerValue)
    Parameters
    Type Name Description
    System.Int32 bitsPerValue
    Returns
    Type Description
    System.Int64
    | Improve this Doc View Source

    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
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)