Add static helper function to parse ContentObject from Buffer.