Microsoft DirectX 8.1 (Visual Basic)

DirectXFileData.GetDataFromOffset

Retrieves data starting from a specified offset.

object.GetDataFromOffset( _
    Name As String, _
    Offset As Long, _
    ByteCount As Long, _
    Data As Any)

Parts

object
Object expression that resolves to a DirectXFileData object.
Name
String value containing the name of the member for which to retrieve data. Specify an empty string to retrieve all required members' data.
Offset
Long value containing the offset into the data buffer.
ByteCount
The size of the data to retrieve, in bytes.
Data
Buffer to receive the data associated with Name. If Name is an empty string, Data is set to a buffer containing all required members' data in a contiguous block of memory.

Error Codes

If the method fails, an error is raised and Err.Number is set.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

DirectXFileData.GetDataSize