MCPcopy Index your code
hub / github.com/alibaba/fastjson2 / of

Method of

core/src/main/java/com/alibaba/fastjson2/JSONReader.java:4646–4648  ·  view source on GitHub ↗

Creates a JSONReader from a byte array containing UTF-8 encoded JSON. @param utf8Bytes The byte array containing UTF-8 encoded JSON @return A JSONReader instance

(byte[] utf8Bytes)

Source from the content-addressed store, hash-verified

4644 * @return A JSONReader instance
4645 */
4646 public static JSONReader of(byte[] utf8Bytes) {
4647 return of(utf8Bytes, 0, utf8Bytes.length, StandardCharsets.UTF_8, createReadContext());
4648 }
4649
4650 @Deprecated
4651 public static JSONReader of(Context context, byte[] utf8Bytes) {

Callers 15

test_0Method · 0.95
test_reflectMethod · 0.95
test_invokeMethod · 0.95
test5_charsMethod · 0.95
test5_utf8Method · 0.95
test6Method · 0.95
test7Method · 0.95
test14Method · 0.95
testMethod · 0.95
testMethod · 0.95
testReadObjectMethod · 0.95
testReadObject1Method · 0.95

Calls 8

createReadContextMethod · 0.95
ofMethod · 0.95
ofUTF16Method · 0.95
ofMethod · 0.95
getCharArrayMethod · 0.95
applyAsIntMethod · 0.80
applyMethod · 0.65
lengthMethod · 0.45

Tested by 15

test_0Method · 0.76
test_reflectMethod · 0.76
test_invokeMethod · 0.76
test5_charsMethod · 0.76
test5_utf8Method · 0.76
test6Method · 0.76
test7Method · 0.76
test14Method · 0.76
testMethod · 0.76
testMethod · 0.76
testReadObjectMethod · 0.76
testReadObject1Method · 0.76