Skip to content

feat: byte length fill on sf writing#57

Open
joseluisballesterosdelval wants to merge 3 commits into
yan74:masterfrom
joseluisballesterosdelval:feat/byte-length-fill-on-sf-writing
Open

feat: byte length fill on sf writing#57
joseluisballesterosdelval wants to merge 3 commits into
yan74:masterfrom
joseluisballesterosdelval:feat/byte-length-fill-on-sf-writing

Conversation

@joseluisballesterosdelval

Copy link
Copy Markdown

When a structured field is written, it may be useful to know the number of written bytes. For example, if I wanted to read an AFP, insert some marks (such as NOPs), and write the result in another file, and if I saved the positions of these marks, I would need to know the byte offset introduced by these marks (NOPs in this example), in order to know the actual position of write cursor.

In this pull request, along with some chore operations (.gitignore additions), it goes a minimal change in AfpOutputStream class, which enables described functionality.

moritzfl added a commit to moritzfl/afplib that referenced this pull request Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant