MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / serializeOld

Method serializeOld

src/SubstringComparator.java:73–84  ·  view source on GitHub ↗
(ChannelBuffer buf)

Source from the content-addressed store, hash-verified

71 }
72
73 @Override
74 void serializeOld(ChannelBuffer buf) {
75 super.serializeOld(buf); // super.predictSerializedSize()
76 // Write code
77 buf.writeByte(0); // 1
78 buf.writeByte((byte) NAME.length); // 1
79 buf.writeBytes(NAME); // NAME.length
80 // writeUTF the substring
81 byte[] expr_bytes = Bytes.UTF8(substr);
82 buf.writeShort(expr_bytes.length); // 2
83 buf.writeBytes(expr_bytes); // expr.length
84 }
85
86 @Override
87 int predictSerializedSize() {

Callers

nothing calls this directly

Calls 1

UTF8Method · 0.95

Tested by

no test coverage detected