tsfile-writer 0.1.3

A simple TsFile writer in rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(PartialEq, Copy, Clone)]
pub enum CompressionType {
    UNCOMPRESSED,
    SNAPPY,
}

impl CompressionType {
    pub fn serialize(&self) -> u8 {
        match self {
            CompressionType::UNCOMPRESSED => 0x00,
            CompressionType::SNAPPY => 0x01,
        }
    }
}