public void write(Bytes bytes, C c) {
   if (c == null) {
     bytes.writeStopBit(NULL_LENGTH);
     return;
   }
   bytes.writeStopBit(c.size());
   for (E e : c) {
     eBytesMarshaller.write(bytes, e);
   }
 }
Beispiel #2
0
 @Override
 public void writeExternal(ObjectOutput out) throws IOException {
   Bytes b = (Bytes) out;
   b.writeStopBit(x);
   b.writeUTFΔ(y);
 }