Skip to main content

Module bspatch

Module bspatch 

Enumsยง

PatchError
Errors that can occur when applying a bspatch patch.

Constantsยง

CAPACITY ๐Ÿ”’

Functionsยง

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 ๐Ÿ”’