All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.indeed.util.mmap.HeapBuffer Maven / Gradle / Ivy

There is a newer version: 1.0.52-3042601
Show newest version
package com.indeed.util.mmap;

import org.apache.log4j.Logger;

import java.io.IOException;
import java.nio.ByteOrder;

/**
 * @author jplaisance
 */
public final class HeapBuffer implements BufferResource {
    private static final Logger log = Logger.getLogger(HeapBuffer.class);

    private final HeapMemory memory;

    public HeapBuffer(int length, ByteOrder endianness) {
        memory = new HeapMemory(length, endianness);
    }

    public HeapMemory memory() {
        return memory;
    }

    public void close() throws IOException {}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy