Skip to content

Commit 3175025

Browse files
committed
Bugfixes in the compression algorithm
1 parent 0166ba5 commit 3175025

File tree

10 files changed

+47705
-27
lines changed

10 files changed

+47705
-27
lines changed

include/lsp-plug.in/resource/Compressor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ namespace lsp
5050
size_t nSegment; // Start of data segment
5151
size_t nOffset; // Current offset in segment
5252
cbuffer_t sBuffer; // Buffer for caching
53+
// FILE *hFD;
5354

5455
protected:
5556
status_t alloc_entry(raw_resource_t **r, io::Path *path, resource_type_t type);

include/lsp-plug.in/resource/buffer.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ namespace lsp
8989
*/
9090
size_t lookup(size_t *out, const void *src, size_t avail);
9191

92+
/**
93+
* Get byte relative to the last written byte
94+
* @param offset offset relative to the last written byte
95+
* @return byte
96+
*/
97+
uint8_t byte_at(size_t offset);
98+
9299
/**
93100
* Cleanup state of the buffer
94101
*/

0 commit comments

Comments
 (0)