/// <summary> /// Writes a <see cref="TlvBlock"/> into the stream /// </summary> public void WriteTlvBlock(TlvBlock value) { lock (this) { dataSegments.Add(new TlvBlockSegment(value)); byteCount += value.GetByteCount(); } }