ByteArraySource
class ByteArraySource(data: ByteArray, index: Int = 0, size: Int = data.size) : Source<ByteArraySink> (source)
Functions
Link copied to clipboard
Decodes an ASN.1 unsigned varint to a Asn1Integer, copying all bytes from the source into a ByteArray.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns a new Source that can read data from this source without consuming it. The returned source becomes invalid once this source is next read or closed.
Link copied to clipboard
Decodes a single Asn1Element from this source.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Reads all parsable ASN.1 elements from this source.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Removes all bytes from this source, writes them to sink, and returns the total number of bytes written to sink. Return 0 if this source is exhausted.