MCPcopy Create free account
hub / github.com/anons-org/opencar / setData

Method setData

src/main/java/com/far/vms/opencar/instruct/BinFile.java:52–59  ·  view source on GitHub ↗
(byte[] d)

Source from the content-addressed store, hash-verified

50
51
52 public void setData(byte[] d) {
53 if (defaultBufferSize <= 0) {
54 System.out.println("You need to set the buffer size first.");
55 return;
56 }
57 buf = new byte[defaultBufferSize];
58 this.data = new ByteArrayInputStream(d);
59 }
60
61 public int getCurReadIdx() {
62 return curReadIdx;

Callers 2

readBinMethod · 0.95
onQuestReadMemoryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected