File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
clickhouse-jdbc/src/main/java/ru/yandex/clickhouse/util Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,16 @@ public void writeByteBuffer(ByteBuffer buffer) throws IOException {
66
66
Channels .newChannel (out ).write (buffer );
67
67
}
68
68
69
+ /**
70
+ * @param bytes byte array will be written into stream
71
+ * @param offset the starting offset in {@code bytes} to start writing at
72
+ * @param len the length of the {@code bytes}, starting from {@code offset}
73
+ * @throws IOException in case if an I/O error occurs
74
+ */
75
+ public void writeBytes (byte [] bytes , int offset , int len ) throws IOException {
76
+ out .write (bytes , offset , len );
77
+ }
78
+
69
79
/**
70
80
* Dangerous. Can only be used for rare optimizations, for example when the string is written in parts
71
81
* without prior concatenation. The size of the string in bytes must be passed through writeUnsignedLeb128.
You can’t perform that action at this time.
0 commit comments