feat: open FSSHTTP OneNote sections

This commit is contained in:
2026-07-22 19:26:08 +02:00
parent a7b1cd7d16
commit eb15fecb3f
12 changed files with 877 additions and 21 deletions

View File

@@ -187,6 +187,16 @@ function objectReferences(object: StoreObject, propertyId: number): ExGuid[] {
propertyId,
countObjectReferences
);
if (object.resolvedObjectIds) {
if (offset + count > object.resolvedObjectIds.length) {
throw new OneNoteParserError(
'MISSING_REFERENCE',
'TOC object-reference range exceeds its resolved OID stream',
{ structure: 'TOCEntryIndex_OidIndex' }
);
}
return object.resolvedObjectIds.slice(offset, offset + count);
}
if (offset + count > object.props.objectIds.length) {
throw new OneNoteParserError(
'MISSING_REFERENCE',