You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
468 B
19 lines
468 B
using System.Text;
|
|
using MediaBrowser.Model.TextEncoding;
|
|
|
|
namespace MediaBrowser.Server.Implementations.TextEncoding
|
|
{
|
|
public class TextEncoding : IEncoding
|
|
{
|
|
public byte[] GetASCIIBytes(string text)
|
|
{
|
|
return Encoding.ASCII.GetBytes(text);
|
|
}
|
|
|
|
public string GetASCIIString(byte[] bytes, int startIndex, int length)
|
|
{
|
|
return Encoding.ASCII.GetString(bytes, 0, bytes.Length);
|
|
}
|
|
}
|
|
}
|