Tabnine Logo
MappedBytes.writeLong
Code IndexAdd Tabnine to your IDE (free)

How to use
writeLong
method
in
net.openhft.chronicle.bytes.MappedBytes

Best Java code snippets using net.openhft.chronicle.bytes.MappedBytes.writeLong (Showing top 3 results out of 315)

origin: OpenHFT/Chronicle-Queue

for (int i = 0; i < pagesPer10Second; i++) {
  for (MappedBytes bytes : queues) {
    bytes.writeLong(i * (4 << 10), i);
origin: net.openhft/chronicle-bytes

@Override
@NotNull
public Bytes<Void> write(@NotNull RandomDataInput bytes, long offset, long length)
    throws BufferUnderflowException, BufferOverflowException {
  assert singleThreadedAccess();
  if (bytes instanceof BytesStore)
    write((BytesStore) bytes, offset, length);
  else if (length == 8)
    writeLong(bytes.readLong(offset));
  else if (length > 0)
    BytesInternal.writeFully(bytes, offset, length, this);
  return this;
}
origin: net.openhft/chronicle-bytes

@NotNull
@Override
public Bytes<Void> write(@NotNull BytesStore bytes, long offset, long length)
    throws BufferUnderflowException, BufferOverflowException {
  assert singleThreadedAccess();
  if (length == 8)
    writeLong(bytes.readLong(offset));
  else if (bytes.isDirectMemory() && length <= Math.min(writeRemaining(), safeCopySize()))
    rawCopy(bytes, offset, length);
  else if (length > 0)
    BytesInternal.writeFully(bytes, offset, length, this);
  return this;
}
net.openhft.chronicle.bytesMappedByteswriteLong

Popular methods of MappedBytes

  • mappedBytes
  • addressForWrite
  • readLimit
  • readPosition
  • release
  • reserve
  • writePosition
  • writeSkip
  • mappedFile
  • readRemaining
  • realCapacity
  • start
  • realCapacity,
  • start,
  • writeLimit,
  • <init>,
  • acquireNextByteStore,
  • acquireNextByteStore0,
  • append8bit0,
  • appendUtf8,
  • bytesStore

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top 12 Jupyter Notebook extensions
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