예제 #1
0
파일: Text.cs 프로젝트: Cinegy/TsAnalyser
        public Text(Text text)
        {
            if (text == null) return;

            _characters = new byte[text._characters.Length];
            Buffer.BlockCopy(text._characters, 0, _characters, 0, text._characters.Length);
        }
예제 #2
0
 public ServiceDescriptor(byte[] stream, int start) : base(stream, start)
 {
     ServiceType = stream[start + 2];
     ServiceProviderNameLength = stream[start + 3];
     ServiceProviderName = new Text(stream, start + 4, ServiceProviderNameLength); // new Text(System.Text.Encoding.UTF8.GetString(stream, start + 4, ServiceProviderNameLength));
     ServiceNameLength = stream[start + 4 + ServiceProviderNameLength];
     ServiceName = new Text(stream, start + 4 + ServiceProviderNameLength + 1, ServiceNameLength);//new Text(System.Text.Encoding.UTF8.GetString(stream, start + 4 + ServiceProviderNameLength + 1, ServiceNameLength));
 }