You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
24 lines
565 B
C#
24 lines
565 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace STUN.Attributes
|
|
{
|
|
public class STUNAsciiTextAttribute : STUNAttribute
|
|
{
|
|
public string Text { get; set; }
|
|
|
|
public override void Parse(STUNBinaryReader binary, int length)
|
|
{
|
|
Text = Encoding.ASCII.GetString(binary.ReadBytes(length));
|
|
}
|
|
|
|
public override void WriteBody(STUNBinaryWriter binary)
|
|
{
|
|
binary.Write(Encoding.ASCII.GetBytes(Text));
|
|
}
|
|
}
|
|
}
|