<div dir="ltr">Hi Guys,<div><br></div><div>The following patch modifies the OwningBuffer class to separate inspection and ownership transfer.</div><div><br></div><div>The getBinary and getBuffer method now return ordinary pointers (with appropriate const-ness). To transfer ownership, you now call takeBinary(), which returns a pair of the Binary and a MemoryBuffer. This interface is odd, but an improvement over transferring the two things separately - this way it is impossible to forget to transfer one of the pair.</div><div><br></div><div>In a future patch I'll look at moving clients of these methods to just holding OwningBinary - that's probably what they want anyway.</div><div><br></div><div>Does this look reasonable?</div><div><br></div><div>Cheers,</div><div>Lang.</div><div><br></div></div>