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

com.firefly.net.ByteBufferArrayOutputEntry Maven / Gradle / Ivy

There is a newer version: 5.0.0-dev6
Show newest version
package com.firefly.net;

import com.firefly.utils.concurrent.Callback;
import com.firefly.utils.io.BufferUtils;

import java.nio.ByteBuffer;
import java.util.Arrays;

public class ByteBufferArrayOutputEntry extends AbstractOutputEntry {

    public ByteBufferArrayOutputEntry(Callback callback, ByteBuffer[] data) {
        super(callback, data);
    }

    @Override
    public OutputEntryType getOutputEntryType() {
        return OutputEntryType.BYTE_BUFFER_ARRAY;
    }

    @Override
    public long remaining() {
        return BufferUtils.remaining(Arrays.asList(data));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy