Examples of Memory


Examples of com.sun.jna.Memory

      return null;

    if (bufferLength == 0)
      return new ArrayList<String>(0);

    Memory valueBuffer = new Memory(bufferLength);
    long valueLength = XAttr.INSTANCE.listxattr(path, valueBuffer, bufferLength, 0);

    if (valueLength < 0)
      return null;

    return decodeStringSequence(valueBuffer.getByteBuffer(0, valueLength));
  }
View Full Code Here

Examples of com.sun.jna.Memory

    long bufferLength = XAttr.INSTANCE.getxattr(path, name, null, 0, 0, 0);

    if (bufferLength < 0)
      return null;

    Memory valueBuffer = new Memory(bufferLength);
    long valueLength = XAttr.INSTANCE.getxattr(path, name, valueBuffer, bufferLength, 0, 0);

    if (valueLength < 0)
      return null;

    return decodeString(valueBuffer.getByteBuffer(0, valueLength - 1));
  }
View Full Code Here

Examples of com.sun.jna.Memory

    return decodeString(valueBuffer.getByteBuffer(0, valueLength - 1));
  }

  public static int setXAttr(String path, String name, String value) {
    Memory valueBuffer = encodeString(value);
    return XAttr.INSTANCE.setxattr(path, name, valueBuffer, valueBuffer.size(), 0, 0);
  }
View Full Code Here

Examples of com.twitter.summingbird.memory.Memory

  /**
   * @param jobId
   */
  public JMemory(JobId jId) {
    jobId = jId;
    platform = new Memory(jobId);
  }
View Full Code Here

Examples of games.memory.Memory

   */
    @Test
    public void testInitilization()
    {
        Memory.reset();
        Memory memory = Memory.getInstance();
        Difficulty diff = new MockDifficulty();
        memory.setDifficulty(diff);
        assertEquals(10, memory.getLives());
    }
View Full Code Here

Examples of nl.nuggit.randomstranger.language.Memory

    }

    public ChatBot(String name, OutputStream outputStream) {
        this.name = name;
        this.out = new PrintWriter(outputStream, true);
        this.memory = new Memory();
        this.temper = new Temper();
        start();
        System.out.println(name + " has started");
    }
View Full Code Here

Examples of org.apache.cassandra.io.util.Memory

    private Memory readChunkOffsets(DataInput input)
    {
        try
        {
            int chunkCount = input.readInt();
            Memory offsets = Memory.allocate(chunkCount * 8);

            for (int i = 0; i < chunkCount; i++)
            {
                try
                {
                    offsets.setLong(i * 8, input.readLong());
                }
                catch (EOFException e)
                {
                    String msg = String.format("Corrupted Index File %s: read %d but expected %d chunks.",
                                               indexFilePath, i, chunkCount);
View Full Code Here

Examples of org.apache.jmeter.monitor.model.Memory

                thinfo.setMaxThreads(150);
                thinfo.setMinSpareThreads(10);
                cnn.setThreadInfo(thinfo);

                Jvm vm = of.createJvm();
                Memory mem = of.createMemory();
                mem.setFree(77280);
                mem.setTotal(134210000);
                mem.setMax(134217728);
                vm.setMemory(mem);

                Status st = of.createStatus();
                st.setJvm(vm);
                st.getConnector().add(cnn);
View Full Code Here

Examples of org.asturlinux.frade.currin.machine.Memory

 
  first_op = evaluateSubExpr(m, first_op);

  second_op = evaluateSubExpr(m, second_op);

  Memory mem = m.getContextStack().currentContext().getMemory();

  if ( first_op.equals(second_op,mem)) {
      m.setResult(new CurrinRef(new CurrinConstr("prelude__EQ",
                   new Vector() )));
View Full Code Here

Examples of org.drools.common.Memory

    public void setTipNode(LeftTupleSource tipNode) {
        this.tipNode = tipNode;
    }

    public Memory createNodeMemory(MemoryFactory memoryFactory, InternalWorkingMemory wm) {
        Memory memory = wm.getNodeMemory( memoryFactory );       
        nodeMemories.add( memory );
        return memory;
    }
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.