sa17 0.1.0

Pure-Rust reader for SQL Anywhere 17 database files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Where a value that is too long for its row is kept.

use crate::row_address::RowAddress;

/// What a row keeps in the place of a long value.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub(crate) struct Descriptor<'record> {
    /// The first bytes of the value.
    pub(crate) prefix: &'record [u8],
    /// The length of what the pieces hold: the value, or its compressed form.
    pub(crate) stored_length: u32,
    /// Where the first piece is.
    pub(crate) first: RowAddress,
    /// The length of the value, when its pieces hold it compressed.
    pub(crate) decompressed_length: Option<u32>,
}