Android.Database.CursorWindow.CopyStringToBuffer Method
Copies the text of the field at the specified row and column index into a Android.Database.CharArrayBuffer.

Syntax

[Android.Runtime.Register("copyStringToBuffer", "(IILandroid/database/CharArrayBuffer;)V", "GetCopyStringToBuffer_IILandroid_database_CharArrayBuffer_Handler")]
public virtual void CopyStringToBuffer (int row, int col, CharArrayBuffer buffer)

Parameters

row
The zero-based row index.
column
The zero-based column index.
buffer
The Android.Database.CharArrayBuffer to hold the string. It is automatically resized if the requested string is larger than the buffer's current capacity.

Remarks

Copies the text of the field at the specified row and column index into a Android.Database.CharArrayBuffer.

The buffer is populated as follows:

  • If the buffer is too small for the value to be copied, then it is automatically resized.
  • If the field is of type ICursor.FIELD_TYPE_NULL, then the buffer is set to an empty string.
  • If the field is of type ICursor.FIELD_TYPE_STRING, then the buffer is set to the contents of the string.
  • If the field is of type ICursor.FIELD_TYPE_INTEGER, then the buffer is set to a string representation of the integer in decimal, obtained by formatting the value with the printf family of functions using format specifier %lld.
  • If the field is of type ICursor.FIELD_TYPE_FLOAT, then the buffer is set to a string representation of the floating-point value in decimal, obtained by formatting the value with the printf family of functions using format specifier %g.
  • If the field is of type ICursor.FIELD_TYPE_BLOB, then a Android.Database.Sqlite.SQLiteException is thrown.

[Android Documentation]

Requirements

Namespace: Android.Database
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1