Package com.alexkasko.unsafe.bytearray

Examples of com.alexkasko.unsafe.bytearray.ByteArrayTool


        testReadLong(allocateMemoryDirect(128));
        testWriteLong(allocateMemoryDirect(128));
        testCopy(allocateMemoryDirect(128), allocateMemoryDirect(128));
        testClone(allocateMemoryDirect(128));

        ByteArrayTool bt = ByteArrayTool.get();
        testReadByte(allocateMemoryOnHeap(bt, 128));
        testWriteByte(allocateMemoryOnHeap(bt, 128));
        testReadUnsignedByte(allocateMemoryOnHeap(bt, 128));
        testWriteUnsignedByte(allocateMemoryOnHeap(bt, 128));
        testReadShort(allocateMemoryOnHeap(bt, 128));
View Full Code Here


     *
     * @param col collection for index access
     * @param comp comparator
     */
    OffHeapStructComparator(OffHeapStructCollection col, Comparator<OffHeapStructAccessor> comp) {
        ByteArrayTool bt = ByteArrayTool.get();
        this.ia1 = new OffHeapStructIndexAccessor(col);
        this.ia2 = new OffHeapStructIndexAccessor(col);
        this.baa1 = new OffHeapStructByteArrayAccessor(bt);
        this.baa2 = new OffHeapStructByteArrayAccessor(bt);
        this.comp = comp;
View Full Code Here

     *
     * @param col collection for index access
     * @param comp comparator
     */
    OffHeapStructComparator(OffHeapStructCollection col, Comparator<OffHeapStructAccessor> comp) {
        ByteArrayTool bt = ByteArrayTool.get();
        this.ia1 = new OffHeapStructIndexAccessor(col);
        this.ia2 = new OffHeapStructIndexAccessor(col);
        this.baa1 = new OffHeapStructByteArrayAccessor(bt);
        this.baa2 = new OffHeapStructByteArrayAccessor(bt);
        this.comp = comp;
View Full Code Here

     *
     * @param col collection for index access
     * @param comp comparator
     */
    OffHeapStructComparator(OffHeapStructCollection col, Comparator<OffHeapStructAccessor> comp) {
        ByteArrayTool bt = ByteArrayTool.get();
        this.ia1 = new OffHeapStructIndexAccessor(col);
        this.ia2 = new OffHeapStructIndexAccessor(col);
        this.baa1 = new OffHeapStructByteArrayAccessor(bt);
        this.baa2 = new OffHeapStructByteArrayAccessor(bt);
        this.comp = comp;
View Full Code Here

TOP

Related Classes of com.alexkasko.unsafe.bytearray.ByteArrayTool

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.