public void ReadObjectDeclaration2Body(ref ObjectDeclaration2Body body) { if (!Unsafe.ReadStruct(binaryReader, ref body)) { throw new FileFormatException("Cannot read ObjectDeclaration2Body"); } }
public ObjectDeclaration2RefCountFND ReadObjectDeclaration2RefCountFND(FileNodeHeader header) { var fileChunkReference = oneNoteFileReader.ReadFileChunkReference(header.StpFormat, header.CbFormat, "ObjectDeclaration2RefCountFND.BlobRef"); var body = new ObjectDeclaration2Body(); oneNoteFileReader.ReadObjectDeclaration2Body(ref body); var cRef = oneNoteFileReader.ReadByte(); return(new ObjectDeclaration2RefCountFND(header, fileChunkReference, body, cRef)); }