MCPcopy Index your code
hub / github.com/apache/tvm / wrapBytes

Method wrapBytes

jvm/core/src/main/java/org/apache/tvm/Tensor.java:398–402  ·  view source on GitHub ↗
(byte[] bytes)

Source from the content-addressed store, hash-verified

396 }
397
398 private static ByteBuffer wrapBytes(byte[] bytes) {
399 ByteBuffer bb = ByteBuffer.wrap(bytes);
400 bb.order(ByteOrder.LITTLE_ENDIAN);
401 return bb;
402 }
403
404 private static ByteBuffer wrapBytes(byte[] bytes, int offset, int length) {
405 ByteBuffer bb = ByteBuffer.wrap(bytes, offset, length);

Callers 7

copyFromMethod · 0.95
asDoubleArrayMethod · 0.95
asFloatArrayMethod · 0.95
asLongArrayMethod · 0.95
asIntArrayMethod · 0.95
asShortArrayMethod · 0.95
asCharArrayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected