We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b61427f commit fb1850bCopy full SHA for fb1850b
lang/java/avro/src/main/java/org/apache/avro/io/BinaryEncoder.java
@@ -37,8 +37,12 @@
37
*/
38
public abstract class BinaryEncoder extends Encoder {
39
40
- // Buffer used for writing ASCII strings
41
- private final byte[] stringBuffer = new byte[128];
+ /*
+ * Buffer used for writing ASCII strings. A string is encoded as a long followed
42
+ * by that many bytes of character data. A string of length 63 is the upper
43
+ * limit for a 1 byte variable-length long value.
44
+ */
45
+ private final byte[] stringBuffer = new byte[63];
46
47
@Override
48
public void writeNull() throws IOException {
0 commit comments