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

io.deephaven.chunk.ByteChunkToOutputStreamAdapter Maven / Gradle / Ivy

The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.chunk;

import io.deephaven.chunk.attributes.Any;

import java.io.IOException;
import java.io.OutputStream;

public class ByteChunkToOutputStreamAdapter {
    public static void write(OutputStream stream, ByteChunk chunk, int srcOffset, int length)
            throws IOException {
        stream.write(chunk.data, chunk.offset + srcOffset, length);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy