Esempio n. 1
0
        ///<summary>
        /// Fill this instance from the given byte buffer stream.
        ///</summary>
        public ulong ReadFrom(ReadOnlyMemory <byte> memory)
        {
            // Skipping the first two bytes since they arent used (weight - not currently used)
            ulong bodySize = NetworkOrderDeserializer.ReadUInt64(memory.Slice(2));
            ContentHeaderPropertyReader reader = new ContentHeaderPropertyReader(memory.Slice(10));

            ReadPropertiesFrom(ref reader);
            return(bodySize);
        }
Esempio n. 2
0
 public abstract void ReadPropertiesFrom(ContentHeaderPropertyReader reader);
 public abstract void ReadPropertiesFrom(ContentHeaderPropertyReader reader);
Esempio n. 4
0
 internal abstract void ReadPropertiesFrom(ContentHeaderPropertyReader reader);
Esempio n. 5
0
        ///<summary>
        /// Fill this instance from the given byte buffer stream.
        ///</summary>
        internal void ReadFrom(ReadOnlySpan <byte> span)
        {
            ContentHeaderPropertyReader reader = new ContentHeaderPropertyReader(span);

            ReadPropertiesFrom(ref reader);
        }