pub struct RecBuffer {
pub data: Vec<u8>,
pub count_only: bool,
}Expand description
Growable append-only byte buffer. Doubles on demand. count_only tallies
size without allocating. (b3RecBuffer)
Fields§
§data: Vec<u8>§count_only: boolImplementations§
Source§impl RecBuffer
impl RecBuffer
pub fn with_capacity(cap: usize) -> Self
pub fn size(&self) -> i32
pub fn append_u8(&mut self, v: u8)
pub fn append_u16(&mut self, v: u16)
pub fn append_u32(&mut self, v: u32)
pub fn append_u64(&mut self, v: u64)
pub fn append_i32(&mut self, v: i32)
pub fn append_f32(&mut self, v: f32)
pub fn append_f64(&mut self, v: f64)
pub fn append_bool(&mut self, v: bool)
pub fn append_vec3(&mut self, v: Vec3)
pub fn append_quat(&mut self, v: Quat)
pub fn append_transform(&mut self, v: Transform)
pub fn append_pos(&mut self, v: Pos)
pub fn append_world_xf(&mut self, v: WorldTransform)
pub fn append_matrix3(&mut self, v: Matrix3)
pub fn append_aabb(&mut self, v: Aabb)
pub fn append_sphere(&mut self, v: Sphere)
pub fn append_capsule(&mut self, v: Capsule)
pub fn append_filter(&mut self, v: Filter)
pub fn append_material(&mut self, v: SurfaceMaterial)
Source§impl RecBuffer
impl RecBuffer
pub fn append_vec2(&mut self, v: Vec2)
pub fn append_softness(&mut self, v: Softness)
Source§impl RecBuffer
impl RecBuffer
Sourcepub fn append_str(&mut self, s: &str)
pub fn append_str(&mut self, s: &str)
(b3RecW_STR)
Sourcepub fn append_str_null(&mut self)
pub fn append_str_null(&mut self)
Null string sentinel used when C passes NULL. (b3RecW_STR NULL path)
pub fn append_world_id(&mut self, v: WorldId)
pub fn append_body_id(&mut self, v: BodyId)
pub fn append_shape_id(&mut self, v: ShapeId)
pub fn append_joint_id(&mut self, v: JointId)
pub fn append_mass_data(&mut self, v: MassData)
pub fn append_locks(&mut self, v: MotionLocks)
pub fn append_query_filter(&mut self, v: &QueryFilter)
pub fn append_shape_proxy(&mut self, v: &ShapeProxy)
pub fn append_explosion_def(&mut self, v: ExplosionDef)
Sourcepub fn append_body_def(&mut self, v: &BodyDef)
pub fn append_body_def(&mut self, v: &BodyDef)
(b3RecW_BODYDEF)
Sourcepub fn append_shape_def(&mut self, v: &ShapeDef)
pub fn append_shape_def(&mut self, v: &ShapeDef)
(b3RecW_SHAPEDEF)
pub fn append_parallel_joint_def(&mut self, v: &ParallelJointDef)
pub fn append_distance_joint_def(&mut self, v: &DistanceJointDef)
pub fn append_filter_joint_def(&mut self, v: &FilterJointDef)
pub fn append_motor_joint_def(&mut self, v: &MotorJointDef)
pub fn append_prismatic_joint_def(&mut self, v: &PrismaticJointDef)
pub fn append_revolute_joint_def(&mut self, v: &RevoluteJointDef)
pub fn append_spherical_joint_def(&mut self, v: &SphericalJointDef)
pub fn append_weld_joint_def(&mut self, v: &WeldJointDef)
pub fn append_wheel_joint_def(&mut self, v: &WheelJointDef)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecBuffer
impl RefUnwindSafe for RecBuffer
impl Send for RecBuffer
impl Sync for RecBuffer
impl Unpin for RecBuffer
impl UnsafeUnpin for RecBuffer
impl UnwindSafe for RecBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more