Examples of byteAt()


Examples of erjang.EBinary.byteAt()

    String pattern;
    ETuple4 tup = ETuple4.cast(obj1);
    if (tup != null && tup.elem1 == ECompiledRE.am_re_pattern) {
      EBinary b = tup.elem4.testBinary();
      byte[] byteArray = b.getByteArray();
      if (b != null && b.byteAt(0) == '/') {
       
        byte[] raw = byteArray;
        int end = raw.length - 1;
        for (int i = b.byteSize()-1; i > 0; i--) {
          if (b.byteAt(i*8) == '/') {
View Full Code Here

Examples of erjang.EBinary.byteAt()

      if (b != null && b.byteAt(0) == '/') {
       
        byte[] raw = byteArray;
        int end = raw.length - 1;
        for (int i = b.byteSize()-1; i > 0; i--) {
          if (b.byteAt(i*8) == '/') {
            end = i;
            break;
          }
        } 
         
View Full Code Here

Examples of erjang.EBinary.byteAt()

      throw ERT.badarg(obj);

    // remove leading +
    int off = 0;
    if (bin.byteSize() > 0) {
      if (bin.byteAt(0) == '+') {
        off += 1;
      }
    }
   
    try {
View Full Code Here

Examples of erjang.EBinary.byteAt()

      throw ERT.badarg(obj, radix);

    // remove leading +
    int off = 0;
    if (bin.byteSize() > 0) {
      if (bin.byteAt(0) == '+') {
        off += 1;
      }
    }
   
    try {
View Full Code Here

Examples of info.riemannhypothesis.crypto.tools.ByteSequence.byteAt()

      ByteSequence block = blocks.blockAt(i);
      boolean lastBlock = (i == blocks.length() - 1);
      try {
        ByteSequence plainBlock = decryptBlock(iv, block);
        if (lastBlock) {
          byte paddingLength = plainBlock
              .byteAt(plainBlock.length() - 1);
          if (paddingLength < 1 || paddingLength > blockLength) {
            throw new Exception("Incorrect padding");
          }
          for (int pos = 1; pos < paddingLength; pos++) {
View Full Code Here

Examples of io.undertow.util.HttpString.byteAt()

                case STATE_HDR_NAME: {
                    log.tracef("Processing header '%s'", headerName);
                    length = headerName.length();
                    while (charIndex < length) {
                        if (buffer.hasRemaining()) {
                            buffer.put(headerName.byteAt(charIndex++));
                        } else {
                            log.trace("Buffer flush");
                            buffer.flip();
                            do {
                                res = next.write(buffer);
View Full Code Here

Examples of io.undertow.util.HttpString.byteAt()

                case STATE_HDR_NAME: {
                    log.tracef("Processing header '%s'", headerName);
                    length = headerName.length();
                    while (charIndex < length) {
                        if (buffer.hasRemaining()) {
                            buffer.put(headerName.byteAt(charIndex++));
                        } else {
                            log.trace("Buffer flush");
                            buffer.flip();
                            do {
                                res = next.write(buffer);
View Full Code Here

Examples of io.undertow.util.HttpString.byteAt()

                case STATE_HDR_NAME: {
                    final HttpString headerName = headerValues.getHeaderName();
                    length = headerName.length();
                    while (charIndex < length) {
                        if (buffer.hasRemaining()) {
                            buffer.put(headerName.byteAt(charIndex++));
                        } else {
                            buffer.flip();
                            do {
                                res = next.write(buffer);
                                if (res == 0) {
View Full Code Here

Examples of javassist.bytecode.CodeIterator.byteAt()

      try {
        final CodeIterator itr = codeAttr.iterator();
        while ( itr.hasNext() ) {
          final int index = itr.next();
          final int op = itr.byteAt( index );
          if ( op != Opcode.PUTFIELD && op != Opcode.GETFIELD ) {
            continue;
          }

          final int constIndex = itr.u16bitAt( index + 1 );
View Full Code Here

Examples of javassist.bytecode.CodeIterator.byteAt()

         return;
      CodeIterator iterator = code.iterator();
      while (iterator.hasNext())
      {
         int index = iterator.next();
         int op = iterator.byteAt(index);

         if (op == Opcode.LDC || op == Opcode.LDC_W)
         {
            int index0 = iterator.byteAt(index + 1);
            int constIndex = index0;
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.