const len = content.byteLength;
while (start < len) {
if (end === -1) {
end = len;
}
if (end > start) {
const line = content.slice(start, end);
if (line.byteLength > 0) {
lineCount++;
const entry = JSON.parse(line.toString()) as Entry;
switch (entry.kind) {
case EntryKind.Initial:
state = entry.v;
break;
if (state === undefined) {
throw new Error('Log file is missing an initial entry');