99100101102103104105106107108109
@BIF public static EBinary term_to_binary(EObject obj) { EOutputStream eos = new EOutputStream(); eos.write(EExternal.versionTag); eos.write_any(obj); return eos.getBinaryContent(); } @BIF public static ESmall external_size(EObject obj) {
186187188189190191192193194195196
EOutputStream eos = new EOutputStream(); eos.write(EExternal.versionTag); if (compression != 0) { eos.write_compressed(obj, compression); } else { eos.write_any(obj); } return eos.getBinaryContent(); } @BIF