Example #1
0
		public IData Deserialize(byte[] bytes, int offset, int count)
		{
			Debug.Assert(count >= 4);

			DLength result = new DLength();
			result.m_length = BitConverter.ToInt32(bytes, offset);		
			return result;
		}
Example #2
0
        public IData Deserialize(byte[] bytes, int offset, int count)
        {
            Debug.Assert(count >= 4);

            DLength result = new DLength();

            result.m_length = BitConverter.ToInt32(bytes, offset);
            return(result);
        }
Example #3
0
        public IKey Deserialize(byte[] bytes, int offset, int count)
        {
            KOffset result = new KOffset();

            result.m_offset = OOD.Utility.Bytes.Unpack4U(bytes, offset);

            DLength dFactory = new DLength();

            if (count > 4)
            {
                result.m_length = (DLength)dFactory.Deserialize(bytes, offset + 4, count - 4);
            }

            return(result);
        }
Example #4
0
		public IKey Deserialize(byte[] bytes, int offset, int count)
		{
			KOffset result = new KOffset();
			result.m_offset = OOD.Utility.Bytes.Unpack4U(bytes, offset);

			DLength dFactory = new DLength();

			if (count > 4)
			{
				result.m_length = (DLength)dFactory.Deserialize(bytes, offset + 4, count - 4);
			}

			return result;
		}
Example #5
0
		public KOffset(uint offset, DLength length)
		{
			m_length = length;
		}
Example #6
0
 public KOffset(uint offset, DLength length)
 {
     m_length = length;
 }