public IData Deserialize(byte[] bytes, int offset, int count) { Debug.Assert(count == 8); uint l_offset = OOD.Utility.Bytes.Unpack4U(bytes, offset); int length = OOD.Utility.Bytes.Unpack4(bytes, offset + 4); DSegAddr result = new DSegAddr(l_offset, length); return result; }
public IData Deserialize(byte[] bytes, int offset, int count) { Debug.Assert(count == 8); uint l_offset = OOD.Utility.Bytes.Unpack4U(bytes, offset); int length = OOD.Utility.Bytes.Unpack4(bytes, offset + 4); DSegAddr result = new DSegAddr(l_offset, length); return(result); }
public IKey Deserialize(byte[] bytes, int offset, int count) { KSegId result = null; int pos = offset; uint id = OOD.Utility.Bytes.Unpack4U(bytes, pos); pos += 4; if (count == 4) { result = new KSegId(id); } else { int length = OOD.Utility.Bytes.Unpack2(bytes, pos); pos += 2; DSegAddr addr = new DSegAddr(); addr = (DSegAddr)addr.Deserialize(bytes, pos, length); result = new KSegId(id, addr); } return(result); }
public KSegId(uint id, DSegAddr addr) { m_id = id; m_addr = addr; }
public KSegId(uint id) { m_id = id; m_addr = null; }
public IKey Deserialize(byte[] bytes, int offset, int count) { KSegId result = null; int pos = offset; uint id = OOD.Utility.Bytes.Unpack4U(bytes, pos); pos += 4; if (count == 4) { result = new KSegId(id); } else { int length = OOD.Utility.Bytes.Unpack2(bytes, pos); pos += 2; DSegAddr addr = new DSegAddr(); addr = (DSegAddr)addr.Deserialize(bytes, pos, length); result = new KSegId(id, addr); } return result; }