allows to deserialize Buffer