예제 #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);
 }