pub struct BinaryData(/* private fields */);Expand description
Binary Data is represented by a Two Byte Integer length which indicates the number of data bytes, followed by that number of bytes.
Thus, the length of Binary Data is limited to the range of 0 to 65,535 Bytes.
+-------------------+
| Binary Length |
| |
+-------------------+
| Bytes |
| |
+-------------------+Implementations§
Source§impl BinaryData
impl BinaryData
Sourcepub fn from_slice(data: &[u8]) -> Result<Self, EncodeError>
pub fn from_slice(data: &[u8]) -> Result<Self, EncodeError>
Trait Implementations§
Source§impl AsRef<[u8]> for BinaryData
impl AsRef<[u8]> for BinaryData
Source§impl Clone for BinaryData
impl Clone for BinaryData
Source§fn clone(&self) -> BinaryData
fn clone(&self) -> BinaryData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinaryData
impl Debug for BinaryData
Source§impl DecodePacket for BinaryData
impl DecodePacket for BinaryData
Source§impl Default for BinaryData
impl Default for BinaryData
Source§fn default() -> BinaryData
fn default() -> BinaryData
Returns the “default value” for a type. Read more
Source§impl EncodePacket for BinaryData
impl EncodePacket for BinaryData
Source§impl PartialEq for BinaryData
impl PartialEq for BinaryData
impl Eq for BinaryData
impl StructuralPartialEq for BinaryData
Auto Trait Implementations§
impl Freeze for BinaryData
impl RefUnwindSafe for BinaryData
impl Send for BinaryData
impl Sync for BinaryData
impl Unpin for BinaryData
impl UnwindSafe for BinaryData
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