Skip to main contentModule bspatch
- PatchError
- Errors that can occur when applying a bspatch patch.
- CAPACITY ๐
- add_old ๐
- Adds the next bytes of
old to data and returns how many bytes old
lacked. - advance ๐
- Advances
pos by len and checks that it stays within limit. - allocate ๐
- Allocates a zeroed buffer of
len bytes without aborting when memory
runs out. - offtin ๐
- Decodes a bsdiff offset, which stores the sign in the top bit instead of
using twoโs complement.
- patch ๐
- Custom bspatch implementation. Optimized to limit the size of memory
allocations.
- resize ๐
- Resizes
buffer to len bytes without aborting when memory runs out and
returns it. - to_len ๐