Examples of len()


Examples of com.facebook.thrift.TByteArrayOutputStream.len()

  // Read in a JSON string containing base-64 encoded data and decode it.
  protected byte[] readJSONBase64() throws TException {
    TByteArrayOutputStream arr = readJSONString(false);
    byte[] b = arr.get();
    int len = arr.len();
    int off = 0;
    int size = 0;
    while (len >= 4) {
      // Decode 4 bytes at a time
      TBase64Utils.decode(b, off, 4, b, size); // NB: decoded in place
View Full Code Here

Examples of com.mysql.ndbjtie.ndbapi.Ndb.Key_part_ptr.len()

            Key_part_ptr key_part_ptr;
            for (int i = 0; i < keyPartsSize; ++i) {
                // each key part ptr consists of a ByteBuffer (char *) and length
                key_part_ptr = key_part_ptrArray.at(i);
                key_part_ptr.ptr(keyParts.get(i).buffer);
                key_part_ptr.len(keyParts.get(i).length);
            }
            // the last key part needs to be initialized to (char *)null
            key_part_ptr = key_part_ptrArray.at(keyPartsSize);
            key_part_ptr.ptr(null);
            key_part_ptr.len(0);
View Full Code Here

Examples of com.mysql.ndbjtie.ndbapi.Ndb.Key_part_ptr.len()

                key_part_ptr.len(keyParts.get(i).length);
            }
            // the last key part needs to be initialized to (char *)null
            key_part_ptr = key_part_ptrArray.at(keyPartsSize);
            key_part_ptr.ptr(null);
            key_part_ptr.len(0);
            ndbTransaction = ndb.startTransaction(
                table, key_part_ptrArray,
                partitionKeyScratchBuffer, partitionKeyScratchBuffer.capacity());
            handleError (ndbTransaction, ndb);
            return ndbTransaction;
View Full Code Here

Examples of com.opendatagroup.NumpySubset.ArrayBoolean1d.len()

        return out;
    }

    public static ArrayBoolean1d copy(ArrayBoolean1d array) {
        ArrayBoolean1d out = new ArrayBoolean1d(array.len());
        for (int i = 0;  i < out.len();  i++) {
            out.set(i, array.get(i));
        }
        return out;
    }
View Full Code Here

Examples of com.opendatagroup.NumpySubset.ArrayDouble1d.len()

        return out;
    }

    public static ArrayDouble1d copy(ArrayDouble1d array) {
        ArrayDouble1d out = new ArrayDouble1d(array.len());
        for (int i = 0;  i < out.len();  i++) {
            out.set(i, array.get(i));
        }
        return out;
    }
View Full Code Here

Examples of com.opendatagroup.NumpySubset.ArrayInteger1d.len()

        return out;
    }

    public static ArrayInteger1d copy(ArrayInteger1d array) {
        ArrayInteger1d out = new ArrayInteger1d(array.len());
        for (int i = 0;  i < out.len();  i++) {
            out.set(i, array.get(i));
        }
        return out;
    }
View Full Code Here

Examples of com.sap.hadoop.ds.streams.Streams.ByteArrayOS.len()

  {
    DataOStream dos = Streams.dos.get();
    ByteArrayOS bos = dos.getUnderlyingStream();
    bos.reset();
    w.write(dos);
    ensureCapacity(bos.len());
    int i = currentSize * 2;
    System.arraycopy(bos.bytearray(), 0, bytes, bytesUsed, bos.len());
    offsetsArray[i] = bytesUsed;
    offsetsArray[i+1] = bos.len();
    currentSize += 1;
View Full Code Here

Examples of com.sap.hadoop.ds.streams.Streams.ByteArrayOS.len()

    ByteArrayOS bos = dos.getUnderlyingStream();
    bos.reset();
    w.write(dos);
    ensureCapacity(bos.len());
    int i = currentSize * 2;
    System.arraycopy(bos.bytearray(), 0, bytes, bytesUsed, bos.len());
    offsetsArray[i] = bytesUsed;
    offsetsArray[i+1] = bos.len();
    currentSize += 1;
    bytesUsed += bos.len();
    lastModified = System.nanoTime();
View Full Code Here

Examples of com.sap.hadoop.ds.streams.Streams.ByteArrayOS.len()

    w.write(dos);
    ensureCapacity(bos.len());
    int i = currentSize * 2;
    System.arraycopy(bos.bytearray(), 0, bytes, bytesUsed, bos.len());
    offsetsArray[i] = bytesUsed;
    offsetsArray[i+1] = bos.len();
    currentSize += 1;
    bytesUsed += bos.len();
    lastModified = System.nanoTime();
  }
 
View Full Code Here

Examples of com.sap.hadoop.ds.streams.Streams.ByteArrayOS.len()

    int i = currentSize * 2;
    System.arraycopy(bos.bytearray(), 0, bytes, bytesUsed, bos.len());
    offsetsArray[i] = bytesUsed;
    offsetsArray[i+1] = bos.len();
    currentSize += 1;
    bytesUsed += bos.len();
    lastModified = System.nanoTime();
  }
 
 
  public int size() throws BaseException
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.