mark-christiaens/xtext — comment on commit 701231c7b73b88cbd6cd05b9aef9c5adf3e5473f
File: plugins/org.eclipse.xtext/src/org/eclipse/xtext/nodemodel/serialization/DefaultSerializationService.java line 182
By szarnekow:

We should probably use the EObjectOutputStream directly, e.g.

EObjectOutputStream eObjectOutputStream = new EObjectOutputStream(outputStream, options);
eObjectOutputStream.saveResource(..);

Which reminds me of:
org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl.EObjectInputStream.readCompressedInt() is that probably the same thing that you implemented, Mark?