mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-21 07:00:59 +00:00
update project targets
This commit is contained in:
parent
f676ea6315
commit
3094cd7ff3
29 changed files with 12206 additions and 307 deletions
|
|
@ -0,0 +1,18 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue