mirror of
https://github.com/claunia/plist-cil.git
synced 2026-02-04 05:34:41 +00:00
[PR #51] [MERGED] BinaryPropertyListParser/Writer: Add extensibility points #76
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/claunia/plist-cil/pull/51
Author: @qmfrederik
Created: 10/16/2018
Status: ✅ Merged
Merged: 10/18/2018
Merged by: @claunia
Base:
master← Head:features/extensibility📝 Commits (1)
66f86cfBinaryPropertyListParser/Writer: Add extensibility points📊 Changes
2 files changed (+21 additions, -8 deletions)
View changed files
📝
plist-cil/BinaryPropertyListParser.cs(+7 -2)📝
plist-cil/BinaryPropertyListWriter.cs(+14 -6)📄 Description
I've spent some time today figuring out why the
BinaryPropertyListWriterwas generating slightly different data from what I expected.To figure that out, did some debugging tricks like:
EqualityComparers which are passed to theBinaryPropertyListWriterAssignIDBinaryPropertyListParserto get the index, offset and summary of all values in the binary property list,In the end, my life would be easier if:
BinaryPropertyListParserandBinaryPropertyListWriterand override methods likeDoParse.BinaryPropertyListWriterwhen it's being created.This PR makes some of the methods protected and adds a new constructor, just enough so that I can actually do that.
Hopefully this is OK with you.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.