This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.msmith; | |
import com.github.plokhotnyuk.jsoniter_scala.core.JsonWriter; | |
import java.util.Arrays; | |
public class CharArrayJsoniterWriter { | |
static void encode(byte[] str, JsonWriter out) { | |
readField(str, 0, out); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.github.plokhotnyuk.jsoniter_scala.core.JsonWriter; | |
import java.util.Arrays; | |
public class CharArrayJsoniterWriter { | |
static void encode(byte[] str, JsonWriter out) { | |
readField(str, 0, out); | |
} | |
private static int readField(byte[] str, int pos, JsonWriter out) { |