fixes to moaidatabuffer so you can use a static function to deflate and inflate