C++
virtual Acad::ErrorStatus readBChunk( ads_binary* pVal ) = 0;
Description
A BChunk is stored as a length (a short) followed by a pointer to its data.
The implementation of this function should follow that of the ObjectARX internal filers. It should:
- check the current filer status. If it is Acad::eOk, then continue, or else return the current status.
- read in the short indicating the length of binary data.
- read in the address of the start of the data.
- allocate memory (using acdbAlloc) for the data to be read into.
- copy the data into the memory just allocated.
- set the buf field of the ads_binary structure pointed to by pVal to point to the buffer of binary data and the structure's clen field to the size of the buffer.
- return an Acad::ErrorStatus value indicating the success or failure of the operation (use Acad::eOk to indicate success).
Note
When using the ObjectARX internal filers (that is, not a custom filer), this method does not do anything about platform-dependent byte order.
Parameters
Parameters | Description |
---|---|
unnamed | Pointer to an ads_binary structure to place the data into |