Package erjang

Examples of erjang.EBitString.substring()


      || i.value > b.byteSize()) {
      throw ERT.badarg(bin, idx);
    }

    long split = i.value*8;
    return new ETuple2(b.substring(0, split),
               b.substring(split));

    /* more efficient, but works only for EBinary */

    // return new ETuple2(b.sub_binary(0, i.value),
View Full Code Here


      throw ERT.badarg(bin, idx);
    }

    long split = i.value*8;
    return new ETuple2(b.substring(0, split),
               b.substring(split));

    /* more efficient, but works only for EBinary */

    // return new ETuple2(b.sub_binary(0, i.value),
    //    b.sub_binary(i.value, b.byteSize()-i.value));   
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.