Esempio n. 1
0
        /// <summary>
        /// Parse the text binary frame.
        /// </summary>
        /// <param name="frame">binary frame</param>
        public override void Parse(byte[] frame)
        {
            int index = 0;

            _textEncoding = (TextCode)frame[index];
            index++;
            _text = TextBuilder.ReadTextEnd(frame, index, _textEncoding);
        }
Esempio n. 2
0
        /// <summary>
        /// Parse the binary frame
        /// </summary>
        /// <param name="frame">binary frame</param>
        public override void Parse(byte[] frame)
        {
            //TODO: Handle this invalid tag
            if (frame.Length < 1)
            {
                return;
            }

            int index = 0;

            _url = TextBuilder.ReadTextEnd(frame, index, TextCode.Ascii);
        }
Esempio n. 3
0
        /// <summary>
        /// Parse the binary frame
        /// </summary>
        /// <param name="frame">binary frame</param>
        public override void Parse(byte[] frame)
        {
            //TODO: Handle this invalid tag
            if (frame.Length < 1)
            {
                return;
            }

            int index = 0;

            _textEncoding = (TextCode)frame[index];
            index++;
            _contents = TextBuilder.ReadText(frame, ref index, _textEncoding);
            _url      = TextBuilder.ReadTextEnd(frame, index, _textEncoding);
        }
Esempio n. 4
0
        /// <summary>
        /// Parse binary data unsynchronised lyrics/comment frame.
        /// </summary>
        /// <param name="frame">binary frame data</param>
        public override void Parse(byte[] frame)
        {
            int index = 0;

            _textEncoding = (TextCode)frame[index];
            index++;

            //TODO: Invalid tag, may be legacy.
            if (frame.Length - index < 3)
            {
                return;
            }

            _contents = TextBuilder.ReadText(frame, ref index, _textEncoding);
            _text     = TextBuilder.ReadTextEnd(frame, index, _textEncoding);
        }
Esempio n. 5
0
        /// <summary>
        /// Parse binary data unsynchronised lyrics/comment frame.
        /// </summary>
        /// <param name="frame">binary frame data</param>
        public override void Parse(byte[] frame)
        {
            int index = 0;

            _textEncoding = (TextCode)frame[index];
            index++;

            //TODO: Invalid tag, may be legacy.
            if (frame.Length - index < 3)
            {
                return;
            }

            _language = UTF8Encoding.UTF8.GetString(frame, index, 3);
            index    += 3; // Three language bytes

            if (frame.Length - index < 1)
            {
                return;
            }

            _contents = TextBuilder.ReadText(frame, ref index, _textEncoding);
            _text     = TextBuilder.ReadTextEnd(frame, index, _textEncoding);
        }