You've already forked linux-apfs-rw
mirror of
https://github.com/linux-apfs/linux-apfs-rw.git
synced 2026-05-01 15:01:34 -07:00
9d4f286f9c
I pushed the code under my own copyright out of habit, but it doesn't seem right since it was done during working hours. Change it. Signed-off-by: Ernesto A. Fernández <ernesto@corellium.com>
32 lines
961 B
C
32 lines
961 B
C
/* SPDX-License-Identifier: GPL-2.0+ OR MIT */
|
|
/*
|
|
* Copyright (c) 2022 Corellium LLC
|
|
*
|
|
* Author: Ernesto A. Fernández <ernesto@corellium.com>
|
|
*
|
|
* Ported from libzbitmap (https://github.com/eafer/libzbitmap). Only the
|
|
* decompression code is included.
|
|
*/
|
|
|
|
#ifndef _LIBZBITMAP_H
|
|
#define _LIBZBITMAP_H
|
|
|
|
#include <linux/errno.h>
|
|
#include <linux/types.h>
|
|
|
|
/**
|
|
* zbm_decompress - Decompress an LZBITMAP buffer
|
|
* @dest: destination buffer (may be NULL)
|
|
* @dest_size: size of the destination buffer
|
|
* @src: source buffer
|
|
* @src_size: size of the source buffer
|
|
* @out_len: on return, the length of the decompressed output
|
|
*
|
|
* May be called with a NULL destination buffer to retrieve the expected length
|
|
* of the decompressed data. Returns 0 on success, or a negative error code in
|
|
* case of failure.
|
|
*/
|
|
int zbm_decompress(void *dest, size_t dest_size, const void *src, size_t src_size, size_t *out_len);
|
|
|
|
#endif /* _LIBZBITMAP_H */
|