Add new attachment processor that uses pre-allocated buffer (#120)

This commit is contained in:
marinthiercelin 2021-03-29 20:46:47 +02:00 committed by GitHub
parent b5823b9dee
commit 973856d299
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 424 additions and 2 deletions

View file

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- `ManualAttachmentProcessor`: a new kind of attachment processor where the caller has to first allocate a buffer large enough for the whole data packet to be written to. It can be created with
```processor, err := keyRing.NewManualAttachmentProcessor(estimatedSize, filename, dataBuffer)```.
### Changed
- Updated the x/mobile fork and the build script to work with golang 1.16