io.deephaven.chunk.ByteChunkToOutputStreamAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-engine-chunk Show documentation
Show all versions of deephaven-engine-chunk Show documentation
Engine Chunks: Array-like data structures for dense, efficient data movement
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 extends Any> chunk, int srcOffset, int length)
throws IOException {
stream.write(chunk.data, chunk.offset + srcOffset, length);
}
}