Table of Contents

Method Decode

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

Decode(Encoding)

Returns a string that is decoded from the data contained in the current stream using the specified encoding.

public abstract string Decode(Encoding encoding)

Parameters

encoding Encoding

The encoding to use to decode the byte stream.

Returns

string

Remarks

This method will read the entire stream of data bytes for the decoding process, regardless of the current position of the stream. This could also result in an internal allocation of a temporary buffer to hold the data bytes, which could be inefficient for large streams.