Пример #1
0
 public void ReadExtendedGuid(ref ExtendedGuid extendedGuid, string context)
 {
     if (!Unsafe.ReadStruct(binaryReader, ref extendedGuid))
     {
         throw new FileFormatException("Cannot read extended GUID. Context: " + context);
     }
 }
Пример #2
0
        public ObjectGroupListReferenceFND ReadObjectGroupListReferenceFND(FileNodeHeader header)
        {
            var fileChunkReference = oneNoteFileReader.ReadFileChunkReference(header.StpFormat, header.CbFormat, "ObjectSpaceManifestListReferenceFND.ref");

            var objectGroupID = new ExtendedGuid();

            oneNoteFileReader.ReadExtendedGuid(ref objectGroupID, "ObjectSpaceManifestListReferenceFND.objectGroupID");

            return(new ObjectGroupListReferenceFND(header, fileChunkReference, objectGroupID));
        }
Пример #3
0
        public ObjectSpaceManifestListReferenceFND ReadObjectSpaceManifestListReferenceFND(FileNodeHeader header)
        {
            var fileChunkReference = oneNoteFileReader.ReadFileChunkReference(header.StpFormat, header.CbFormat, "ObjectSpaceManifestListReferenceFND.ref");

            var gosid = new ExtendedGuid();

            oneNoteFileReader.ReadExtendedGuid(ref gosid, "ObjectSpaceManifestListReferenceFND.gosid");

            return(new ObjectSpaceManifestListReferenceFND(header, fileChunkReference, gosid));
        }