public override UInt16 Write(Byte[] buf, UInt16 offset, int len) { if (len >= offset + 8) { NetPacketHeader.HtonUInt64(buf, offset, (UInt64)m_Vlue); return(8); } return(0); }
public override UInt16 Write(Byte[] buf, UInt16 offset, int len) { UInt64[] buffer = (UInt64[])m_Vlue; UInt16 nResult = offset; UInt16 n = WriteArrayHead(buf, offset); offset += n; if (len >= offset + (8 * m_nLen)) { for (n = 0; n < m_nLen; ++n) { NetPacketHeader.HtonUInt64(buf, offset, buffer[n]); offset += 8; } return((UInt16)(offset - nResult)); } return(0); }