private void writeObject(ObjectOutputStream o) throws IOException { serializeToStream(o); }
private void writeObject(ObjectOutputStream o) throws IOException { serializeToStream(o); }
public void serializeToStream(OutputStream bos) throws IOException { int numOutsCreated = txOutsCreated.size(); bos.write(0xFF & numOutsCreated); bos.write(0xFF & (numOutsCreated >> 8)); bos.write(0xFF & (numOutsCreated >> 16)); bos.write(0xFF & (numOutsCreated >> 24)); for (UTXO output : txOutsCreated) { output.serializeToStream(bos); } int numOutsSpent = txOutsSpent.size(); bos.write(0xFF & numOutsSpent); bos.write(0xFF & (numOutsSpent >> 8)); bos.write(0xFF & (numOutsSpent >> 16)); bos.write(0xFF & (numOutsSpent >> 24)); for (UTXO output : txOutsSpent) { output.serializeToStream(bos); } } }
public void serializeToStream(OutputStream bos) throws IOException { int numOutsCreated = txOutsCreated.size(); bos.write(0xFF & numOutsCreated); bos.write(0xFF & (numOutsCreated >> 8)); bos.write(0xFF & (numOutsCreated >> 16)); bos.write(0xFF & (numOutsCreated >> 24)); for (UTXO output : txOutsCreated) { output.serializeToStream(bos); } int numOutsSpent = txOutsSpent.size(); bos.write(0xFF & numOutsSpent); bos.write(0xFF & (numOutsSpent >> 8)); bos.write(0xFF & (numOutsSpent >> 16)); bos.write(0xFF & (numOutsSpent >> 24)); for (UTXO output : txOutsSpent) { output.serializeToStream(bos); } } }
public void serializeToStream(OutputStream bos) throws IOException { int numOutsCreated = txOutsCreated.size(); bos.write(0xFF & numOutsCreated); bos.write(0xFF & (numOutsCreated >> 8)); bos.write(0xFF & (numOutsCreated >> 16)); bos.write(0xFF & (numOutsCreated >> 24)); for (UTXO output : txOutsCreated) { output.serializeToStream(bos); } int numOutsSpent = txOutsSpent.size(); bos.write(0xFF & numOutsSpent); bos.write(0xFF & (numOutsSpent >> 8)); bos.write(0xFF & (numOutsSpent >> 16)); bos.write(0xFF & (numOutsSpent >> 24)); for (UTXO output : txOutsSpent) { output.serializeToStream(bos); } } }
public void serializeToStream(OutputStream bos) throws IOException { int numOutsCreated = txOutsCreated.size(); bos.write(0xFF & numOutsCreated); bos.write(0xFF & (numOutsCreated >> 8)); bos.write(0xFF & (numOutsCreated >> 16)); bos.write(0xFF & (numOutsCreated >> 24)); for (UTXO output : txOutsCreated) { output.serializeToStream(bos); } int numOutsSpent = txOutsSpent.size(); bos.write(0xFF & numOutsSpent); bos.write(0xFF & (numOutsSpent >> 8)); bos.write(0xFF & (numOutsSpent >> 16)); bos.write(0xFF & (numOutsSpent >> 24)); for (UTXO output : txOutsSpent) { output.serializeToStream(bos); } } }
ByteArrayOutputStream bos = new ByteArrayOutputStream(); try { out.serializeToStream(bos); } catch (IOException e) { throw new BlockStoreException("problem serialising utxo", e);
ByteArrayOutputStream bos = new ByteArrayOutputStream(); try { out.serializeToStream(bos); } catch (IOException e) { throw new BlockStoreException("problem serialising utxo", e);
ByteArrayOutputStream bos = new ByteArrayOutputStream(); try { out.serializeToStream(bos); } catch (IOException e) { throw new BlockStoreException("problem serialising utxo", e);
ByteArrayOutputStream bos = new ByteArrayOutputStream(); try { out.serializeToStream(bos); } catch (IOException e) { throw new BlockStoreException("problem serialising utxo", e);