Microsoft DirectX 8.1 (Visual Basic)

AddStringToBuffer

Adds a string to a byte array.

AddStringToBuffer( _
    Buffer() As Byte, _
    StringData As String, _
    lOffset As Long)

Parameters

Buffer
Byte array that the data is to be added to.
StringData
String value that is to be added to Buffer.
lOffset
Long value containing the offset, in bytes, to the location in the byte array where the data is to be added. When the function returns, this parameter will be set to the offset of the first byte following the data that has just been added.

Remarks

If the byte array passed to Buffer is not large enough to hold the added string, the array will be enlarged without data loss to a sufficient size.