API Reference > Other Classes > OdDgResBuf Class > OdDgResBuf Methods > OdDgResBuf::setBinaryChunk Method
OdDgResBuf::setBinaryChunk Method
Syntax
C++
void setBinaryChunk(const OdBinaryData& bChunk);
Parameters 
Description 
const OdBinaryData& bChunk 
[in] Binary chunk instance to be set. 

Sets the data content of the ResBuf object using the specified binary chunk instance only if the stored group code has the BinaryChunk type. 

 

This method generates the OdError_InvalidResBuf exception when the stored data type does not correspond to the BinaryChunk type. The passed value must be the OdBinaryChunk instance.

Example of Entering and Displaying Tagged Data 

Getting and Setting Specific Data (color 

Determining the Data Type by Group Code 

OdResBuf::getBinaryChunk(), OdResBuf::setRestype(), OdDxfCode::_getType() methods 

OdBinaryData, OdUInt8 classes

Copyright © 2002–2020. Open Design Alliance. All rights reserved.