Пример #1
0
 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);
   }
 }
Пример #2
0
 @Override
 public void writeExternal(ObjectOutput out) throws IOException {
   Bytes b = (Bytes) out;
   b.writeStopBit(x);
   b.writeUTFΔ(y);
 }