/** * Convert this number to the equivalent Erlang external representation. * * @param buf an output stream to which the encoded number should be written. */ @Override public void encode(final OtpOutputStream buf) { if (bigVal != null) { buf.write_big_integer(bigVal); } else { buf.write_long(val); } }
@Override public void encode(final OtpOutputStream buf) { buf.write_fun(pid, module, old_index, arity, md5, index, uniq, freeVars); }
/** * Convert this string to the equivalent Erlang external representation. * * @param buf an output stream to which the encoded string should be written. */ @Override public void encode(final OtpOutputStream buf) { buf.write_string(str); }