reifydb-codec 0.8.1

Unified encoding and decoding for all ReifyDB values, frames, rows, keys, and boundaries
Documentation
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2026 ReifyDB

use reifydb_value::value::{
	container::dictionary::DictionaryContainer, dictionary::DictionaryEntryId, frame::data::FrameColumnData,
};

fn make(v: Vec<DictionaryEntryId>) -> FrameColumnData {
	FrameColumnData::DictionaryId(DictionaryContainer::new(v))
}

crate::plain_tests! {
	typical: vec![
		DictionaryEntryId::U16(1),
		DictionaryEntryId::U16(1000),
		DictionaryEntryId::U16(1_000_000),
		DictionaryEntryId::U16(1_000_000_000_000),
	],
	boundary: vec![
		DictionaryEntryId::U16(0),
		DictionaryEntryId::U16(u8::MAX as u128),
		DictionaryEntryId::U16(u16::MAX as u128),
		DictionaryEntryId::U16(u32::MAX as u128),
		DictionaryEntryId::U16(u64::MAX as u128),
		DictionaryEntryId::U16(u128::MAX),
	],
	single: DictionaryEntryId::U16(1),
}