Table of Contents

Class ByteEncoding

Namespace
NAudio.Utils
Assembly
NAudio.Core.dll

An encoding for use with file types that have one byte per character

public class ByteEncoding : Encoding, ICloneable
Inheritance
ByteEncoding
Implements
Inherited Members

Fields

Instance

The one and only instance of this class

public static readonly ByteEncoding Instance

Field Value

ByteEncoding

Methods

GetByteCount(char[], int, int)

public override int GetByteCount(char[] chars, int index, int count)

Parameters

chars char[]
index int
count int

Returns

int

GetBytes(char[], int, int, byte[], int)

public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)

Parameters

chars char[]
charIndex int
charCount int
bytes byte[]
byteIndex int

Returns

int

GetCharCount(byte[], int, int)

public override int GetCharCount(byte[] bytes, int index, int count)

Parameters

bytes byte[]
index int
count int

Returns

int

GetChars(byte[], int, int, char[], int)

public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)

Parameters

bytes byte[]
byteIndex int
byteCount int
chars char[]
charIndex int

Returns

int

GetMaxByteCount(int)

public override int GetMaxByteCount(int charCount)

Parameters

charCount int

Returns

int

GetMaxCharCount(int)

public override int GetMaxCharCount(int byteCount)

Parameters

byteCount int

Returns

int