Examples of remaining()


Examples of org.tmatesoft.sqljet.core.internal.ISqlJetMemoryPointer.remaining()

         * Set zIn to point at the start of the input buffer and zTerm to point
         * 1* byte past the end.** Variable zOut is set to point at the output
         * buffer, space obtained* from sqlite3_malloc().
         */
        zOut = SqlJetUtility.translate(pMem.z, pMem.enc, desiredEnc);
        pMem.n = zOut.remaining();

        assert ((pMem.n + (desiredEnc == SqlJetEncoding.UTF8 ? 1 : 2)) <= len);

        pMem.release();
        pMem.flags.removeAll(SqlJetUtility.of(SqlJetVdbeMemFlags.Static, SqlJetVdbeMemFlags.Dyn,
View Full Code Here

Examples of org.xtreemfs.foundation.buffer.ReusableBuffer.remaining()

       
        int start = random.nextInt((int) (maxTestFileSize - minChunkSize));
        int end = random.nextInt((int) (maxTestFileSize - minChunkSize - start))
                        + minChunkSize + start;
        ReusableBuffer result = client.chunk(testFileName, start, end).get();
        assertEquals(end - start, result.remaining());
       
        byte[] testData = new byte[end - start];
        FileInputStream sIn = new FileInputStream(testFileName);
        sIn.skip(start);
        sIn.read(testData, 0, end - start);
View Full Code Here

Examples of reactor.io.Buffer.remaining()

              @Override
              public void accept(Frame frame) {
                short prefix = frame.getPrefix().readShort();
                assertThat("prefix is 0", prefix == 0);
                Buffer data = frame.getData();
                assertThat("len is 128", data.remaining() == 128);

                latch.countDown();
              }
            });
          }
View Full Code Here

Examples of statechum.analysis.learning.rpnicore.LTL_to_ba.Lexer.remaining()

    Lexer lexer = buildLexer(str);
    OtpErlangObject result = parseFirstTermInText(lexer);
    if (lexer.getLastMatchType() >= 0)// did not get to the end of string
      throw new IllegalArgumentException(
          "unexpected characters at the end of string to parse, looking at "
              + lexer.remaining());
    return result;
  }

  protected final static Map<Class<? extends OtpErlangObject>, ErlangParserComponent> classToDumper;
  static {
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.