Examples of position()


Examples of reactor.io.Buffer.position()

    return combined;
  }

  private void passToConnection(ByteBuf data) {
    Buffer b = new Buffer(data.nioBuffer());
    int start = b.position();
    netChannel.read(b);
    data.skipBytes(b.position() - start);
  }

}
View Full Code Here

Examples of seph.lang.ast.Message.position()

    @Test
    public void parsing_an_empty_message_send_generates_a_correct_filename_line_and_position() {
        Message result = parse("\n\n\n          (blarg)", "aaa.sp");
        assertEquals("aaa.sp", result.filename());
        assertEquals(4, result.line());
        assertEquals(10, result.position());
    }

    @Test
    public void parsing_a_square_message_generates_a_correct_filename_line_and_position() {
        Message result = parse("\n\n    [foo]", "aab.sp");
View Full Code Here

Examples of simpleserver.Player.position()

    Player p = e.server.findPlayer(player);
    if (p == null) {
      e.notifyError("isarea: Player not found!");
      push(false);
    }
    HashSet<Area> areas = new HashSet<Area>(e.server.config.dimensions.areas(p.position()));
    for (Area a : areas) {
      if (a.name.equals(area)) {
        push(true);
        return;
      }
View Full Code Here

Examples of st.gravel.support.compiler.ast.Parser.position()

      public st.gravel.core.Symbol value_(final String _each) {
        return (st.gravel.core.Symbol) st.gravel.core.Symbol.value(_each);
      }
    }))));
    _parser = Parser.factory.source_sourceFile_(st.gravel.support.jvm.FilenameExtensions.contentsOfEntireFile(_aFilename), SourceFile.factory.directory_name_packageName_(_aFilename.getParent(), _aFilename.getName(), _packageName));
    _start = _parser.position();
    boolean _temp1 = false;
    while (!_temp1) {
      _temp1 = _parser.atEnd();
      if (!_temp1) {
        _expr = ((MessageNode) _parser.parseExpression());
View Full Code Here

Examples of starlight.taliis.core.memory.position()

    buff.position(0);
    buff.limit(data);
    tmp.put( buff );
   
    // copy data field
    tmp.position(data);
    dataBlock.buff.position(0);
    tmp.put( dataBlock.buff );
   
    // copy strings
    strTable.buff.position(0);
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.