[PATCH 01/49] Add support for an owned buffer