#mod-dev-talk Wednesday 29 December 2021
13 messages2 people
- G@Azzyypaaras
@Override public ByteBuffer encode() { int size = 0; var values = value(); byte[][] data = new byte[values.size()][]; for(int i = 0, valuesSize = values.size(); i < valuesSize; i++){ String value = values.get(i); var datum = value.getBytes(StandardCharsets.UTF_8); size += (data[i] = Arrays.copyOf(datum, datum.length + 1)).length; } ByteBuffer buffer = ByteBuffer.allocate(size); for(var datum : data) { buffer.put(datum); } return buffer.position(0); } - A
Replying togudenau@Azzyypaaras @Override public ByteBuffer encode() { int size = 0; var values = value()…
datum03:50uhhh, forge networking? - G03:50What is wrong with
datum? - A
- G
- A
- G
- A
Replying togudenauhttps://github.com/devicetree-org/devicetree-specification/releases/download/v0.3/devicet…
...what am I reading
- GIt's the modern way of telling software about the hardware it runs on, mostly for bootloaders and kernels and such.03:52I need to implement this for my computer mod.
- A