Ejemplo n.º 1
0
 /**
  * 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);
   }
 }
Ejemplo n.º 2
0
 @Override
 public void encode(final OtpOutputStream buf) {
   buf.write_fun(pid, module, old_index, arity, md5, index, uniq, freeVars);
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }