コード例 #1
0
 /*
  * Create a binary from a stream containinf a binary encoded in
  * Erlang external format.
  *
  * @param buf the stream containing the encoded binary.
  *
  * @exception DecodeException if the buffer does not
  * contain a valid external representation of an Erlang binary.
  **/
 public Binary(OtpInputStream buf)
 {
     this.bin = buf.read_binary();
 }
コード例 #2
0
ファイル: Binary.cs プロジェクト: e42s/jungerl
 /*
 * Create a binary from a stream containinf a binary encoded in
 * Erlang external format.
 *
 * @param buf the stream containing the encoded binary.
 *
 * @exception DecodeException if the buffer does not
 * contain a valid external representation of an Erlang binary.
 **/
 public Binary(OtpInputStream buf)
 {
     this.bin = buf.read_binary();
 }