pub fn encode_to_buffer<T>(value: &T) -> Option<SharedAlignedBuffer<Align1>>where
T: Encode + ?Sized,Expand description
Encode a value with SCALE codec into a new buffer.
Returns None if the encoding is larger than [OwnedAlignedBuffer::MAX_CAPACITY] or allocation
fails.