SQLiteRawStatement.ReadColumnBlob(Int32, Byte[], Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.