public Text(Text text) { if (text == null) return; _characters = new byte[text._characters.Length]; Buffer.BlockCopy(text._characters, 0, _characters, 0, text._characters.Length); }
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)); }