Tabnine Logo
GridUnsafeMemory.writeFloat
Code IndexAdd Tabnine to your IDE (free)

How to use
writeFloat
method
in
org.apache.ignite.internal.util.offheap.unsafe.GridUnsafeMemory

Best Java code snippets using org.apache.ignite.internal.util.offheap.unsafe.GridUnsafeMemory.writeFloat (Showing top 2 results out of 315)

origin: apache/ignite

/** {@inheritDoc} */
@Override public void writeFloat(float v) {
  mem.writeFloat(move(4), v);
}
origin: apache/ignite

/**
 *
 */
@Test
public void testFloat() {
  GridUnsafeMemory mem = new GridUnsafeMemory(64);
  int size = 32;
  long addr = mem.allocate(size);
  try {
    float f1 = 0.23223f;
    mem.writeFloat(addr, f1);
    assertEquals(f1, mem.readFloat(addr));
  }
  finally {
    mem.release(addr, size);
  }
}
org.apache.ignite.internal.util.offheap.unsafeGridUnsafeMemorywriteFloat

Popular methods of GridUnsafeMemory

  • allocate
    Allocates memory of given size in bytes.
  • <init>
  • readByte
  • readBytes
  • release
    Releases memory at the given address.
  • writeByte
  • allocatedSize
  • casLong
  • readInt
  • readLong
  • readShort
  • writeBytes
    Writes part of byte array into memory location.
  • readShort,
  • writeBytes,
  • writeInt,
  • writeLong,
  • writeShort,
  • compare,
  • copyMemory,
  • readDouble,
  • readFloat,
  • readLongVolatile

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now