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

org.nohope.serialization.ByteBufferUtils Maven / Gradle / Ivy

package org.nohope.serialization;

import java.nio.ByteBuffer;

/**
 * @author ketoth xupack
 */
public final class ByteBufferUtils {
    private ByteBufferUtils() {
    }

    public static byte[] continuousArray(final ByteBuffer buffer) {
        final byte[] payload = new byte[buffer.remaining()];
        buffer.get(payload);
        return payload;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy