다음을 통해 공유


SQLiteRawStatement.ReadColumnBlob(Int32, Byte[], Int32, Int32, Int32) Method

Definition

Copy the column value of the result row, interpreted as a blob, into the buffer.

[Android.Runtime.Register("readColumnBlob", "(I[BIII)I", "", ApiSince=35)]
public int ReadColumnBlob (int columnIndex, byte[] buffer, int offset, int length, int srcOffset);
[<Android.Runtime.Register("readColumnBlob", "(I[BIII)I", "", ApiSince=35)>]
member this.ReadColumnBlob : int * byte[] * int * int * int -> int

Parameters

columnIndex
Int32

The index of a column in the result row. It is zero-based.

buffer
Byte[]

A pre-allocated array to be filled with the value of the column.

offset
Int32

An offset into the buffer: copying starts here.

length
Int32

The number of bytes to copy.

srcOffset
Int32

The offset into the blob from which to start copying.

Returns

the number of bytes that were copied.

Attributes

Remarks

Copy the column value of the result row, interpreted as a blob, into the buffer. Column indices start at 0. This throws an exception if column is not in the result row. Bytes are copied into the buffer starting at the offset. Bytes are copied from the blob starting at srcOffset. Length bytes are copied unless the column value has fewer bytes available. The function returns the number of bytes copied.

The column value will be converted if it is not of type #SQLITE_DATA_TYPE_BLOB; see the sqlite documentation for details.

Java documentation for android.database.sqlite.SQLiteRawStatement.readColumnBlob(int, byte[], int, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to