Implemented Buffer.close() and Buffer.fill().