/** * Writes entry. * * @param ptr Pointer. * @param hash Hash. * @param keyBytes Key bytes. * @param valBytes Value bytes. * @param queueAddr Queue address. * @param next Next address. * @param mem Memory. */ static void write(long ptr, int hash, byte[] keyBytes, byte[] valBytes, long queueAddr, long next, GridUnsafeMemory mem) { hash(ptr, hash, mem); writeKeyLength(ptr, keyBytes.length, mem); writeValueLength(ptr, valBytes.length, mem); queueAddress(ptr, queueAddr, mem); nextAddress(ptr, next, mem); writeKeyBytes(ptr, keyBytes, mem); writeValueBytes(ptr, keyBytes.length, valBytes, mem); }
/** * Writes entry. * * @param ptr Pointer. * @param hash Hash. * @param keyBytes Key bytes. * @param valBytes Value bytes. * @param mem Memory. */ static void write(long ptr, int hash, byte[] keyBytes, byte[] valBytes, GridUnsafeMemory mem) { hash(ptr, hash, mem); writeKeyLength(ptr, keyBytes.length, mem); writeValueLength(ptr, valBytes.length, mem); writeKeyBytes(ptr, keyBytes, mem); writeValueBytes(ptr, keyBytes.length, valBytes, mem); }
/** * Writes entry. * * @param ptr Pointer. * @param hash Hash. * @param keyBytes Key bytes. * @param valBytes Value bytes. * @param queueAddr Queue address. * @param next Next address. * @param mem Memory. */ static void write(long ptr, int hash, byte[] keyBytes, byte[] valBytes, long queueAddr, long next, GridUnsafeMemory mem) { hash(ptr, hash, mem); writeKeyLength(ptr, keyBytes.length, mem); writeValueLength(ptr, valBytes.length, mem); queueAddress(ptr, queueAddr, mem); nextAddress(ptr, next, mem); writeKeyBytes(ptr, keyBytes, mem); writeValueBytes(ptr, keyBytes.length, valBytes, mem); }
/** * Writes entry. * * @param ptr Pointer. * @param hash Hash. * @param keyBytes Key bytes. * @param valBytes Value bytes. * @param mem Memory. */ static void write(long ptr, int hash, byte[] keyBytes, byte[] valBytes, GridUnsafeMemory mem) { hash(ptr, hash, mem); writeKeyLength(ptr, keyBytes.length, mem); writeValueLength(ptr, valBytes.length, mem); writeKeyBytes(ptr, keyBytes, mem); writeValueBytes(ptr, keyBytes.length, valBytes, mem); }