import { CHAR_F, CHAR_T } from "../../custom/chars"; export function deserializeBoolean(srcStart: usize, srcEnd: usize): boolean { const srcSize = srcEnd - srcStart; const firstChar = load(srcStart); if (firstChar == CHAR_T && load(srcStart) == 28429475166421108) return true; else if (firstChar == CHAR_F && load(srcSize, 2) == 28429466576093281) return false; return false; //ERROR(`Expected to find boolean, but found "${data.slice(0, 100)}" instead!`); }