Esempio n. 1
0
        /// <summary>
        /// Returns a string that represents the current RtmpPacket object fields.
        /// </summary>
        /// <param name="indentLevel">The indentation level used for tracing the packet members.</param>
        /// <returns>A string that represents the current RtmpPacket object fields.</returns>
        private string ToStringFields(int indentLevel)
        {
            String sep   = MessageBase.GetFieldSeparator(indentLevel);
            String value = sep + "header = " + (_header != null ? _header.ToStringFields(indentLevel + 1) : "(null)");

            value += sep + "message = " + (_message != null ? _message.ToString(indentLevel + 1) : "(null)");
            value += sep + "data = " + (_data != null ? "buffer(" + _data.Length + ")" : "(null)");
            return(value);
        }
Esempio n. 2
0
        /// <summary>
        /// Returns a string that represents the current RtmpHeader object fields.
        /// </summary>
        /// <param name="indentLevel">The indentation level used for tracing the header members.</param>
        /// <returns>A string that represents the current RtmpHeader object fields.</returns>
        internal string ToStringFields(int indentLevel)
        {
            String sep   = MessageBase.GetFieldSeparator(indentLevel);
            String value = sep + "channelId = " + _channelId;

            value += sep + "timer = " + _timer + " (" + (_timerRelative ? "relative" : "absolute") + ")";
            value += sep + "size = " + _size;
            value += sep + "streamId = " + _streamId;
            value += sep + "dateType = " + _headerDataType + " (" + HeaderTypeToString(_headerDataType) + ")";
            return(value);
        }
Esempio n. 3
0
 internal String GetFieldSeparator(int indentLevel)
 {
     return(MessageBase.GetFieldSeparator(indentLevel));
 }