Examples of saveToBuffer()


Examples of org.jwildfire.script.Action.saveToBuffer()

    String actionStr = null;
    int row = actionTable.getSelectedRow();
    if ((row >= 0) && (row < actionList.size())) {
      Action action = actionList.get(row);
      StringBuffer b = new StringBuffer();
      action.saveToBuffer(b, "\n");
      actionStr = b.toString();
      envelopeController.setCurrAction(action);
    }
    else {
      envelopeController.setCurrAction(null);
View Full Code Here

Examples of org.jwildfire.script.Action.saveToBuffer()

              parameter.setValue(Tools.doubleToString(val));
            }
          }

          StringBuffer b = new StringBuffer();
          action.saveToBuffer(b, "\n");
          String actionStr = b.toString();
          scriptActionTextArea.setText(actionStr);
          scriptActionTextArea.select(0, 0);
        }
      }
View Full Code Here

Examples of org.voltdb.sysprocs.saverestore.HashinatorSnapshotData.saveToBuffer()

                ElasticHashinator.getConfigureBytes(3,
                ElasticHashinator.DEFAULT_TOTAL_TOKENS), false);
        byte[] bytes = h1.getConfigBytes();
        HashinatorSnapshotData d1 = new HashinatorSnapshotData(bytes, 1234);
        InstanceId iid1 = new InstanceId(111, 222);
        ByteBuffer b1 = d1.saveToBuffer(iid1);
        ByteBuffer b2 = ByteBuffer.wrap(b1.array());
        HashinatorSnapshotData d2 = new HashinatorSnapshotData();
        InstanceId iid2 = d2.restoreFromBuffer(b2);
        assertEquals(iid1, iid2);
        assertTrue(Arrays.equals(d1.m_serData, d2.m_serData));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.