Example #1
0
 OggFile(Gosu::Reader reader)
 : reader_(buffer_.frontReader())
 {
     buffer_.resize(reader.resource().size() - reader.position());
     reader.read(buffer_.data(), buffer_.size());
     
     setup();
 }
Example #2
0
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());
}