doc: add missing return types in buffer.md