Skip to main content

DeviceCodestream

Trait DeviceCodestream 

Source
pub trait DeviceCodestream {
    // Required methods
    fn codestream_memory_range(&self) -> Option<DeviceMemoryRange>;
    fn codestream_allocation_len(&self) -> Option<usize>;
    fn codestream_byte_len(&self) -> usize;
    fn codestream_capacity(&self) -> usize;
}
Expand description

Completed codestream bytes resident in backend-visible memory.

Required Methods§

Source

fn codestream_memory_range(&self) -> Option<DeviceMemoryRange>

Backend-visible range covering the codestream capacity.

Source

fn codestream_allocation_len(&self) -> Option<usize>

Total byte length of the backing allocation, when known.

Source

fn codestream_byte_len(&self) -> usize

Number of valid codestream bytes.

Source

fn codestream_capacity(&self) -> usize

Writable capacity beginning at the memory range offset.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§