Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted on October 20, 2016 at 01:17 PM

Section 1 (C++)

getValueByKey(...)
{
	if(!contentOffset)
		return 0;

	while(1) {
		if(...) {

		} else if(...) {
			...
			if(...)
				continue; // NEXT_KEY_PART
			else
				return ...;
			...
		} else if(contentCellType <= MAX_BLOCK_TYPE) {
			if(getValueInBlock(...))
				return 0;
			else
				continue; // NEXT_KEY_PART
		} else if(...) {
			...
			if(...)
				continue; // NEXT_KEY_PART
			else
				return ...;
			..
		} else {


		}
	}
}

getValueInBlock(...)
{
	while(1) {
		if(...)
			return 0;
		else if(...)
			return 1; // NEXT_KEY_PART
		else if(...)
			return 1; // NEXT_KEY_PART
		else if(...)
			continue; // NEXT_BLOCK
		else
			return 0;
	}
}