Skip to content

BitStreamFormatter Methods

Utilities for formatting an encoded bitstream in a textual manner.

Format(BufferSlice, SerializerSession)

static
View source
public static string Format(BufferSlice slice, SerializerSession session)
Formats the specified array.

Parameters

sliceBufferSlice
The array.
sessionSerializerSession
The session.

Returns

The formatted input.

Format(ReadOnlyMemory<byte>, SerializerSession)

static
View source
public static string Format(ReadOnlyMemory<byte> input, SerializerSession session)
Formats the specified buffer.

Parameters

inputReadOnlyMemory<byte>
The input buffer.
sessionSerializerSession
The session.

Returns

The formatted input.

Format(ReadOnlySpan<byte>, SerializerSession)

static
View source
public static string Format(ReadOnlySpan<byte> input, SerializerSession session)
Formats the specified buffer.

Parameters

inputReadOnlySpan<byte>
The input buffer.
sessionSerializerSession
The session.

Returns

The formatted input.

Format(Stream, SerializerSession)

static
View source
public static string Format(Stream input, SerializerSession session)
Formats the specified buffer.

Parameters

inputStream
The input buffer.
sessionSerializerSession
The session.

Returns

The formatted input.

Format(byte[], SerializerSession)

static
View source
public static string Format(byte[] array, SerializerSession session)
Formats the specified array.

Parameters

arraybyte[]
The array.
sessionSerializerSession
The session.

Returns

The formatted input.

Format(Reader<TInput>)

static
View source
public static string Format<TInput>(ref Reader<TInput> reader)
Formats the provided buffer.

Parameters

readerReader<TInput>
The reader.

Returns

The formatted input.

Format(Reader<TInput>, StringBuilder)

static
View source
public static void Format<TInput>(ref Reader<TInput> reader, StringBuilder result)
Formats the specified buffer.

Parameters

readerReader<TInput>
The reader.
resultStringBuilder
The destination string builder.