mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Add a placeholder huffman_decoder struct.
This commit is contained in:
1 parent
4b7a350a68
commit
65c4efbe8b
4 files changed
+31
-1
No files matched your search
@@ -749,7 +749,7 @@ func (g *gen) writeCTypeName(n *a.TypeExpr, varNamePrefix string, varName string
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if fallback {
|
if fallback {
|
||||||
g.printf("%s%s", g.pkgPrefix, n.Name().String(g.tm))
|
g.printf("%s%s", g.pkgPrefix, innermost.Name().String(g.tm))
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := 0; i < numPointers; i++ {
|
for i := 0; i < numPointers; i++ {
|
||||||
|
|||||||
@@ -121,6 +121,18 @@ const char* puffs_flate_status_string(puffs_flate_status s);
|
|||||||
|
|
||||||
// ---------------- Structs
|
// ---------------- Structs
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
// Do not access the private_impl's fields directly. There is no API/ABI
|
||||||
|
// compatibility or safety guarantee if you do so. Instead, use the
|
||||||
|
// puffs_flate_huffman_decoder_etc functions.
|
||||||
|
//
|
||||||
|
// In C++, these fields would be "private", but C does not support that.
|
||||||
|
//
|
||||||
|
// It is a struct, not a struct*, so that it can be stack allocated.
|
||||||
|
struct {
|
||||||
|
} private_impl;
|
||||||
|
} puffs_flate_huffman_decoder;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
// Do not access the private_impl's fields directly. There is no API/ABI
|
// Do not access the private_impl's fields directly. There is no API/ABI
|
||||||
// compatibility or safety guarantee if you do so. Instead, use the
|
// compatibility or safety guarantee if you do so. Instead, use the
|
||||||
@@ -136,6 +148,7 @@ typedef struct {
|
|||||||
|
|
||||||
uint32_t f_bits;
|
uint32_t f_bits;
|
||||||
uint32_t f_n_bits;
|
uint32_t f_n_bits;
|
||||||
|
puffs_flate_huffman_decoder f_huff[2];
|
||||||
uint8_t f_code_lengths[19];
|
uint8_t f_code_lengths[19];
|
||||||
uint32_t f_wip0;
|
uint32_t f_wip0;
|
||||||
uint32_t f_wip1;
|
uint32_t f_wip1;
|
||||||
|
|||||||
@@ -121,6 +121,18 @@ const char* puffs_flate_status_string(puffs_flate_status s);
|
|||||||
|
|
||||||
// ---------------- Structs
|
// ---------------- Structs
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
// Do not access the private_impl's fields directly. There is no API/ABI
|
||||||
|
// compatibility or safety guarantee if you do so. Instead, use the
|
||||||
|
// puffs_flate_huffman_decoder_etc functions.
|
||||||
|
//
|
||||||
|
// In C++, these fields would be "private", but C does not support that.
|
||||||
|
//
|
||||||
|
// It is a struct, not a struct*, so that it can be stack allocated.
|
||||||
|
struct {
|
||||||
|
} private_impl;
|
||||||
|
} puffs_flate_huffman_decoder;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
// Do not access the private_impl's fields directly. There is no API/ABI
|
// Do not access the private_impl's fields directly. There is no API/ABI
|
||||||
// compatibility or safety guarantee if you do so. Instead, use the
|
// compatibility or safety guarantee if you do so. Instead, use the
|
||||||
@@ -136,6 +148,7 @@ typedef struct {
|
|||||||
|
|
||||||
uint32_t f_bits;
|
uint32_t f_bits;
|
||||||
uint32_t f_n_bits;
|
uint32_t f_n_bits;
|
||||||
|
puffs_flate_huffman_decoder f_huff[2];
|
||||||
uint8_t f_code_lengths[19];
|
uint8_t f_code_lengths[19];
|
||||||
uint32_t f_wip0;
|
uint32_t f_wip0;
|
||||||
uint32_t f_wip1;
|
uint32_t f_wip1;
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ pub struct decoder?(
|
|||||||
bits u32,
|
bits u32,
|
||||||
n_bits u32,
|
n_bits u32,
|
||||||
|
|
||||||
|
huff[2] huffman_decoder,
|
||||||
code_lengths[19] u8[..7],
|
code_lengths[19] u8[..7],
|
||||||
|
|
||||||
// These temporary fields are used to debug work-in-progress code.
|
// These temporary fields are used to debug work-in-progress code.
|
||||||
@@ -120,3 +121,6 @@ pri func decoder.decode_dynamic?(dst writer1, src reader1)() {
|
|||||||
this.bits = bits
|
this.bits = bits
|
||||||
this.n_bits = n_bits
|
this.n_bits = n_bits
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pri struct huffman_decoder(
|
||||||
|
)
|
||||||
Reference in new issue
Block a user