Function to_bytes_with_opt

Source
pub fn to_bytes_with_opt<V>(
    value: &V,
    header: &HkxHeader,
    ser: ByteSerializer,
) -> Result<Vec<u8>>
where V: Serialize + ClassNamesWriter,
Expand description

Serialize to bytes with custom BytesSerializer settings.

§Errors

  • When information necessary for binary data conversion is missing.
  • When a write to the wrong write position is requested.