6768697071727374757677
/// second state removes 3, 7, 10 and adds 11, 12 addFs(1, 2, 4, 5, 6, 8, 9, 11, 12); stateEngine.prepareForWrite(); writer.writeDelta(baos); delta = baos.toByteArray(); baos.reset(); writer.writeSnapshot(baos); snapshot2 = baos.toByteArray();
178179180181182183184185186187188
ByteArrayOutputStream baos = new ByteArrayOutputStream(); DataOutputStream outputStream = new DataOutputStream(baos); try { /// This time write the delta file. writer.writeDelta(outputStream); } catch(IOException e) { /// thrown if the FastBlobWriter was unable to write to the provided stream. } finally { try { outputStream.close();