OggFile(Gosu::Reader reader) : reader_(buffer_.frontReader()) { buffer_.resize(reader.resource().size() - reader.position()); reader.read(buffer_.data(), buffer_.size()); setup(); }
void GosuEx::Data::inflatePacket(const Gosu::Buffer& source, Packet& dest, const unsigned int CHUNK) { Gosu::Buffer dbuf; inflate(source, dbuf, CHUNK); dest = Packet(dbuf.data(), dbuf.size()); }