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

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

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

origin: OpenHFT/Chronicle-Queue

@NotNull
@Override
public String dump() {
  MappedBytes bytes = MappedBytes.mappedBytes(mappedFile);
  try {
    bytes.readLimit(bytes.realCapacity());
    return Wires.fromSizePrefixedBlobs(bytes);
  } finally {
    bytes.release();
  }
}
origin: OpenHFT/Chronicle-Queue

@NotNull
@Override
public String dump() {
  MappedBytes bytes = MappedBytes.mappedBytes(mappedFile);
  try {
    bytes.readLimit(bytes.realCapacity());
    return Wires.fromSizePrefixedBlobs(bytes);
  } finally {
    bytes.release();
  }
}
origin: OpenHFT/Chronicle-Queue

try {
  MappedBytes bytes = MappedBytes.mappedBytes(file, 4 << 20, OS.pageSize(), !OS.isWindows());
  bytes.readLimit(bytes.realCapacity());
  StringBuilder sb = new StringBuilder();
  WireDumper dumper = WireDumper.of(bytes);
origin: OpenHFT/Chronicle-Queue

public void checkFileContents(@NotNull File file, String expected) throws FileNotFoundException {
  @NotNull MappedBytes bytes = MappedBytes.mappedBytes(file, ChronicleQueue.TEST_BLOCK_SIZE);
  bytes.readLimit(bytes.realCapacity());
  assertEquals(expected, Wires.fromSizePrefixedBlobs(bytes));
  bytes.release();
}
origin: OpenHFT/Chronicle-Queue

try {
  mappedBytes.readPosition(0);
  mappedBytes.readLimit(mappedBytes.realCapacity());
  while (mappedWire.readDataHeader()) {
    int header = mappedBytes.readVolatileInt();
  int safeLength = Maths.toUInt31(mappedBytes.realCapacity() - mappedBytes.readPosition());
  mappedBytes.writeLimit(mappedBytes.realCapacity());
  mappedBytes.writePosition(mappedBytes.readPosition());
  long pos = recovery.writeHeader(mappedWire, safeLength, timeoutMS, null, null);
origin: OpenHFT/Chronicle-Queue

long address = bytes.addressForWrite(bytes.writePosition());
long bstart = bytes.start();
long bcap = bytes.realCapacity();
long canWrite = bcap - (bytes.writePosition() - bstart);
long lengthCount = batchAppender.writeMessages(address, canWrite, writeCount);
origin: OpenHFT/Chronicle-Queue

try {
  MappedBytes bytes = MappedBytes.mappedBytes(file, 4 << 20);
  bytes.readLimit(bytes.realCapacity());
origin: OpenHFT/Chronicle-Queue

long address = bytes.addressForWrite(bytes.writePosition());
long bstart = bytes.start();
long bcap = bytes.realCapacity();
long canWrite = bcap - (bytes.writePosition() - bstart);
long lengthCount = writeMessages(address, canWrite, writeCount);
origin: net.openhft/chronicle-queue

@NotNull
@Override
public String dump() {
  MappedBytes bytes = MappedBytes.mappedBytes(mappedFile);
  try {
    bytes.readLimit(bytes.realCapacity());
    return Wires.fromSizePrefixedBlobs(bytes);
  } finally {
    bytes.release();
  }
}
origin: net.openhft/chronicle-queue

@NotNull
@Override
public String dump() {
  MappedBytes bytes = MappedBytes.mappedBytes(mappedFile);
  try {
    bytes.readLimit(bytes.realCapacity());
    return Wires.fromSizePrefixedBlobs(bytes);
  } finally {
    bytes.release();
  }
}
origin: net.openhft/chronicle-queue

try {
  MappedBytes bytes = MappedBytes.mappedBytes(file, 4 << 20, OS.pageSize(), !OS.isWindows());
  bytes.readLimit(bytes.realCapacity());
  StringBuilder sb = new StringBuilder();
  WireDumper dumper = WireDumper.of(bytes);
origin: net.openhft/chronicle-queue

try {
  mappedBytes.readPosition(0);
  mappedBytes.readLimit(mappedBytes.realCapacity());
  while (mappedWire.readDataHeader()) {
    int header = mappedBytes.readVolatileInt();
  int safeLength = Maths.toUInt31(mappedBytes.realCapacity() - mappedBytes.readPosition());
  mappedBytes.writeLimit(mappedBytes.realCapacity());
  mappedBytes.writePosition(mappedBytes.readPosition());
  long pos = recovery.writeHeader(mappedWire, safeLength, timeoutMS, null, null);
origin: net.openhft/chronicle-queue

long address = bytes.addressForWrite(bytes.writePosition());
long bstart = bytes.start();
long bcap = bytes.realCapacity();
long canWrite = bcap - (bytes.writePosition() - bstart);
long lengthCount = batchAppender.writeMessages(address, canWrite, writeCount);
net.openhft.chronicle.bytesMappedBytesrealCapacity

Popular methods of MappedBytes

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

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • JButton (javax.swing)
  • CodeWhisperer alternatives
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