Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am alanw on github.
* I am alanwright (https://keybase.io/alanwright) on keybase.
* I have a public key ASA1qtBbOpzroHFcY5lcQeJSjb2o7iktbTMrzG8WEyQrJgo
To claim this, I am signing this object:
@alanw
alanw / gist:4671177
Last active December 11, 2015 22:39
SkipBuffer::SkipBuffer(IndexInputPtr input, int32_t length)
{
std::cout << "SkipBuffer::SkipBuffer (" << this << ") [length = " << length << "]" << std::endl;
pos = 0;
data = ByteArray::newInstance(length);
pointer = input->getFilePointer();
input->readBytes(data.get(), 0, length);
}
SkipBuffer::~SkipBuffer()