Package erjang

Examples of erjang.EBitString.bitSize()


       
        int depth = d.intValue();
        if (depth < 0) depth=Integer.MAX_VALUE;
       
        ESeq builder = ERT.NIL;
        long bitCount = bin.bitSize();
        if (bitCount > 8*(depth-1)) {
            // Replace tail with ellipsis:
            builder = builder.cons(EString.fromString("..."));
        } else if (bitCount % 8 > 0) {
            // Handle tail bits
View Full Code Here


  @BIF
  public static EInteger bit_size(EObject o) {
    EBitString bin = o.testBitString();
    if (bin == null)
      throw ERT.badarg(o);
    return ERT.box(bin.bitSize());
  }


  @BIF(type=Type.GUARD, name="bit_size")
  public static EInteger bit_size_guard(EObject o) {
View Full Code Here

  @BIF(type=Type.GUARD, name="bit_size")
  public static EInteger bit_size_guard(EObject o) {
    EBitString bin = o.testBitString();
    if (bin == null)
      return null;
    return ERT.box(bin.bitSize());
  }

  @BIF
  public static EAtom or(EObject o1, EObject o2) {
    Boolean b1 = ERT.asBoolean(o1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.