public override void Serialize(RecyclableMemoryStream target)
 {
     base.Serialize(target);
     target.Write7BitInt(RawDataBufferId);
     target.Write7BitInt(RawDataSeq);
     target.Write7BitInt(ContentLength);
 }
Beispiel #2
0
        public override void Serialize(RecyclableMemoryStream target)
        {
            base.Serialize(target);

            target.Write((ushort)ContentTypeLength);
            if (ContentTypeLength > 0)
            {
                target.Write(ContentType, 0, ContentTypeLength);
            }
            target.Write(checked ((short)ContentLength.Length));
            foreach (var i in ContentLength)
            {
                target.Write7BitInt(i);
            }
        }