Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class GrowableByteArrayDataOutput

    A DataOutput that can be used to build a byte[].

    Note

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

    Inheritance
    object
    DataOutput
    GrowableByteArrayDataOutput
    Inherited Members
    DataOutput.WriteBytes(byte[], int)
    DataOutput.WriteInt32(int)
    DataOutput.WriteInt16(short)
    DataOutput.WriteVInt32(int)
    DataOutput.WriteInt64(long)
    DataOutput.WriteVInt64(long)
    DataOutput.WriteString(string)
    DataOutput.CopyBytes(DataInput, long)
    DataOutput.WriteStringStringMap(IDictionary<string, string>)
    DataOutput.WriteStringSet(ISet<string>)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class GrowableByteArrayDataOutput : DataOutput

    Constructors

    GrowableByteArrayDataOutput(int)

    Create a GrowableByteArrayDataOutput with the given initial capacity.

    Declaration
    public GrowableByteArrayDataOutput(int cp)
    Parameters
    Type Name Description
    int cp

    Properties

    Bytes

    The bytes

    Declaration
    public byte[] Bytes { get; set; }
    Property Value
    Type Description
    byte[]

    Length

    The length

    Declaration
    public int Length { get; set; }
    Property Value
    Type Description
    int

    Methods

    WriteByte(byte)

    Writes a single byte.

    The most primitive data type is an eight-bit byte. Files are accessed as sequences of bytes. All other data types are defined as sequences of bytes, so file formats are byte-order independent.
    Declaration
    public override void WriteByte(byte b)
    Parameters
    Type Name Description
    byte b
    Overrides
    DataOutput.WriteByte(byte)
    See Also
    ReadByte()

    WriteBytes(byte[], int, int)

    Writes an array of bytes.

    Declaration
    public override void WriteBytes(byte[] b, int off, int len)
    Parameters
    Type Name Description
    byte[] b

    the bytes to write

    int off
    int len
    Overrides
    DataOutput.WriteBytes(byte[], int, int)
    See Also
    ReadBytes(byte[], int, int)
    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.