cnvBytesMid
Return a substring of bytes of specified length from within a given byte array
Syntax
[VBA]
Public Function cnvBytesMid ( _
Bytes() As Byte, _
nOffset As Long, _
Optional nBytes As Long = -1 _
) As Byte()
Parameters
- Bytes
- Byte array from which to return a substring (of bytes)
- nOffset
- Offset at which substring begins. First byte is at offset zero.
- nBytes
- Number of bytes in substring (optional). If negative, copy to end of input.
Return Value
Byte(): A byte array containing a specified number of bytes from a byte array.