aboutsummaryrefslogtreecommitdiff
path: root/sys/base/flate/internal.h
blob: 794c7c20119610c2fbf2c78732d26150a78737bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once

#include <u.h>
#include <base.h>

#include <zlib.h>

typedef struct buffer
{
    union {
        struct z_stream_s; 
        z_stream z;
    };

    ubyte buf[4098];
} buffer;

typedef struct flate·Reader
{
    io·Reader rdr;
    void*     impl;

    union {
        struct buffer;
        buffer b;
    };
} flate·Reader;

typedef struct flate·Writer
{
    io·Writer wtr;
    void*     impl;

    union {
        struct buffer;
        buffer b;
    };
} flate·Writer;