コード例 #1
0
 private void readTid(@NotNull WireIn metaDataWire) {
   ValueIn valueIn = metaDataWire.readEventName(eventName);
   if (CoreFields.tid.contentEquals(eventName)) {
     tid = valueIn.int64();
     eventName.setLength(0);
   } else tid = -1;
 }
コード例 #2
0
 private C collectionFromWire() {
   C c = factory.get();
   @SuppressWarnings("ConstantConditions")
   final ValueIn valueIn = ((Wire) outWire).getValueIn();
   while (valueIn.hasNextSequenceItem()) {
     c.add(fromWire.apply(valueIn));
   }
   return c;
 }
コード例 #3
0
  /** peeks the csp or if it has a cid converts the cid into a Csp and returns that */
  private void readCsp(@NotNull final WireIn wireIn) {
    final StringBuilder keyName = Wires.acquireStringBuilder();

    cspText.setLength(0);
    final ValueIn read = wireIn.readEventName(keyName);
    if (csp.contentEquals(keyName)) {
      read.textTo(cspText);

    } else if (cid.contentEquals(keyName)) {
      final long cid = read.int64();
      final CharSequence s = mapWireHandler.getCspForCid(cid);
      cspText.append(s);
    }
  }