C# 클래스 Lucene.Net.Index.Payload

상속: System.ICloneable
파일 보기 프로젝트 열기: synhershko/lucene.net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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