MCPcopy Create free account
hub / github.com/e2wugui/zeze / encode

Method encode

ZezeJava/ZezeJava/src/main/java/Zeze/Schemas.java:384–397  ·  view source on GitHub ↗
(@NotNull ByteBuffer bb)

Source from the content-addressed store, hash-verified

382 }
383
384 @Override
385 public void encode(@NotNull ByteBuffer bb) {
386 bb.WriteInt(id);
387 bb.WriteString(name);
388 bb.WriteString(typeName);
389 bb.WriteString(keyName);
390 bb.WriteString(valueName);
391
392 bb.WriteInt(dynamicBeans.size()); // size
393 for (var it = dynamicBeans.iterator(); it.moveToNext(); ) {
394 bb.WriteLong(it.key());
395 bb.WriteString(it.value());
396 }
397 }
398
399 public void compile(@NotNull Schemas s) {
400 type = s.compile(typeName, keyName, valueName);

Callers

nothing calls this directly

Calls 8

sizeMethod · 0.65
moveToNextMethod · 0.65
keyMethod · 0.65
valueMethod · 0.65
WriteIntMethod · 0.45
WriteStringMethod · 0.45
iteratorMethod · 0.45
WriteLongMethod · 0.45

Tested by

no test coverage detected