refbuf should be replaced
refbuf is a type of objected used to store binary data. As the name suggest it has an internal reference counter that allows it to be freed automatically when no longer in use.
the old refbuf objects aren't well designed and allow direct access to internal data structures. This became abused.
The new object type MUST:
- be well designed,
- not allow access to internal data structures,
- have a well designed API to access the object's content in a secure way.