GetChars Method
See Also 
SourceCode.SmartObjects.Client Namespace > SmartObjectReader Class : GetChars Method



i
fieldoffset
buffer
The buffer into which to copy the data.
bufferoffset
The index with the buffer to which the data will be copied.
length
The maximum number of characters to read.

Glossary Item Box

Reads a stream of characters from the specified column, starting at location indicated by dataOffset, into the buffer, starting at the location indicated by bufferoffset.

Syntax

Visual Basic (Declaration) 
Public Overrides Function GetChars( _
   ByVal i As Integer, _
   ByVal fieldoffset As Long, _
   ByVal buffer() As Char, _
   ByVal bufferoffset As Integer, _
   ByVal length As Integer _
) As Long
Visual Basic (Usage)Copy Code
Dim instance As SmartObjectReader
Dim i As Integer
Dim fieldoffset As Long
Dim buffer() As Char
Dim bufferoffset As Integer
Dim length As Integer
Dim value As Long
 
value = instance.GetChars(i, fieldoffset, buffer, bufferoffset, length)
C# 
public override long GetChars( 
   int i,
   long fieldoffset,
   char[] buffer,
   int bufferoffset,
   int length
)
C++/CLI 
public:
int64 GetChars( 
   int i,
   int64 fieldoffset,
   array<char>^ buffer,
   int bufferoffset,
   int length
) override 

Parameters

i
fieldoffset
buffer
The buffer into which to copy the data.
bufferoffset
The index with the buffer to which the data will be copied.
length
The maximum number of characters to read.

Return Value

The actual number of characters read.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also