BRefData* copy(); ///< Create a copy of this reference for writing, if necessary
BRefData* addRef(); ///< Increment the reference counter
int deleteRef(); ///< Decrement the reference counter
char* data(){ return (char*)odata; } ///< Return the raw data pointer
int len(){ return olen; } ///< Return the length in bytes