encode(storing:into:with:)
Encodes a sequence of bytes into a pre-allocated buffer as a base-16 string with the specified lettercasing.
static func encode<BigEndian, Digits>(storing words: BigEndian, into ascii: UnsafeMutableRawBufferPointer, with _: Digits.Type) where Digits : BaseDigits
The size of the ascii
buffer must be exactly twice the inline size of words
. If this method is used incorrectly, the output buffer may be incompletely initialized, but it will never write to memory outside of the buffer’s bounds.