AddDataToBuffer
Adds nonstring data to a byte array.
AddDataToBuffer( _
Buffer() As Byte, _
lData As Any, _
lSize As Long, _
lOffset As Long)
Parameters
- Buffer
- Byte array to which the data is to be added.
- lData
- Data that is to be added to Buffer.
- lSize
- Size, in bytes, of the data in lData. The simplest way to determine this value is to use the Microsoft® Visual Basic® LenB function. You can also use one of the values from the CONST_DPLAYBUFSIZE enumeration.
- 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 data, the array will be enlarged without data loss to a sufficient size.