Skip to content

Conversation

@traetox
Copy link

@traetox traetox commented Apr 19, 2021

Purpose of this PR:

  1. Updates the header to have a magic value so that we can identify the file
  2. Updates the header structure to point directly into the memory mapped file so that binary read/write cycles are not needed
  3. Added additional API to allow for overwriting pushes (NOT the default)
  4. Added Flock to unix builds
  5. Added additional open method that does not truncate allowing for the buffer to be opened and closed without overwriting header
  6. Added explicit close method so that systems can open and close this type resource

The PR should be backwards compatible and not break any existing usage, but does add some nice helpers and a little safety around opening existing buffers and making it possible to hand an existing buffer off to an external application which can consume it.

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.

2 participants