I'm looking for some guidance on the correct way to write/read a TopoDS_Shape to/from a memory buffer. Something like BRepTools::Write/Read, but using a binary format instead of ASCII as well as being able to target a specific version. The information I found for OCAF persistence mentions a binary format, but it's vague and doesn't reference any classes. Any help is appreciated. Using OCCT 7.0 beta.