示例#1
0
        public void RemoveHeader(string header)
        {
            for (int i = 0; _headers != null && i < _headers.Count; i++)
            {
                AMFHeader amfHeader = _headers[i] as AMFHeader;

                if (amfHeader.Name == header)
                {
                    _headers.RemoveAt(i);
                }
            }
        }
示例#2
0
        private void WriteHeader(AMFHeader header, ObjectEncoding objectEncoding)
        {
            base.Reset();

            base.WriteUTF(header.Name);

            base.WriteBoolean(header.MustUnderstand);

            base.WriteInt32(-1);

            base.WriteData(objectEncoding, header.Content);
        }
示例#3
0
        public AMFHeader GetHeader(string header)
        {
            for (int i = 0; _headers != null && i < _headers.Count; i++)
            {
                AMFHeader amfHeader = _headers[i] as AMFHeader;

                if (amfHeader.Name == header)
                {
                    return(amfHeader);
                }
            }

            return(null);
        }
示例#4
0
 public void AddHeader(AMFHeader header)
 {
     _headers.Add(header);
 }