C# Класс Lucene.Net.Index.Payload

Наследование: System.ICloneable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
data byte[]
internalLength int
internalOffset int

Открытые методы

Метод Описание
ByteAt ( int index ) : byte

Returns the byte at the given index.

Clone ( ) : Object

Clones this payload by creating a copy of the underlying byte array.

CopyTo ( byte target, int targetOffset ) : void

Copies the payload data to a byte array.

Equals ( System obj ) : bool
GetData ( ) : byte[]

Gets or sets a reference to the underlying byte array that holds this payloads data. Data is not copied.

GetHashCode ( ) : int
Payload ( ) : System

Creates an empty payload and does not allocate a byte array.

Payload ( byte data ) : System

Creates a new payload with the the given array as data. A reference to the passed-in array is held, i. e. no copy is made.

Payload ( byte data, int offset, int length ) : System

Creates a new payload with the the given array as data. A reference to the passed-in array is held, i. e. no copy is made.

SetData ( byte value ) : void

Gets or sets a reference to the underlying byte array that holds this payloads data. Data is not copied.

SetData ( byte value, int offset, int length ) : void

Sets this payloads data. A reference to the passed-in array is held, i. e. no copy is made.

ToByteArray ( ) : byte[]

Allocates a new byte array, copies the payload data into it and returns it.

Описание методов

ByteAt() публичный Метод

Returns the byte at the given index.
public ByteAt ( int index ) : byte
index int
Результат byte

Clone() публичный Метод

Clones this payload by creating a copy of the underlying byte array.
public Clone ( ) : Object
Результат System.Object

CopyTo() публичный Метод

Copies the payload data to a byte array.
public CopyTo ( byte target, int targetOffset ) : void
target byte the target byte array ///
targetOffset int the offset in the target byte array ///
Результат void

Equals() публичный Метод

public Equals ( System obj ) : bool
obj System
Результат bool

GetData() публичный Метод

Gets or sets a reference to the underlying byte array that holds this payloads data. Data is not copied.
public GetData ( ) : byte[]
Результат byte[]

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

Payload() публичный Метод

Creates an empty payload and does not allocate a byte array.
public Payload ( ) : System
Результат System

Payload() публичный Метод

Creates a new payload with the the given array as data. A reference to the passed-in array is held, i. e. no copy is made.
public Payload ( byte data ) : System
data byte the data of this payload ///
Результат System

Payload() публичный Метод

Creates a new payload with the the given array as data. A reference to the passed-in array is held, i. e. no copy is made.
public Payload ( byte data, int offset, int length ) : System
data byte the data of this payload ///
offset int the offset in the data byte array ///
length int the length of the data ///
Результат System

SetData() публичный Метод

Gets or sets a reference to the underlying byte array that holds this payloads data. Data is not copied.
public SetData ( byte value ) : void
value byte
Результат void

SetData() публичный Метод

Sets this payloads data. A reference to the passed-in array is held, i. e. no copy is made.
public SetData ( byte value, int offset, int length ) : void
value byte
offset int
length int
Результат void

ToByteArray() публичный Метод

Allocates a new byte array, copies the payload data into it and returns it.
public ToByteArray ( ) : byte[]
Результат byte[]

Описание свойств

data защищенное свойство

the byte array containing the payload data
protected byte[] data
Результат byte[]

internalLength защищенное свойство

the length of the payload data
protected int internalLength
Результат int

internalOffset защищенное свойство

the offset within the byte array
protected int internalOffset
Результат int