From f66c3f8f02ed54e86ebc68ca1d6143c398849aa9 Mon Sep 17 00:00:00 2001 From: GsLogimaker Date: Mon, 11 Sep 2023 17:00:58 -0500 Subject: [PATCH] Add getter for ColumnDynamic count --- src/system.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/system.rs b/src/system.rs index 99222ae..d59e3fc 100644 --- a/src/system.rs +++ b/src/system.rs @@ -432,6 +432,11 @@ impl ColumnDynamic { ColumnDynamic { array, count, element_size, is_shared } } + #[inline] + pub fn count(&self) -> usize { + self.count + } + pub fn element_size(&self) -> usize { self.element_size }