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

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

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

origin: OpenHFT/Chronicle-Queue

if (bytes.readPosition() > upperLimit) {
  out.println("# limit reached.");
  return;
origin: OpenHFT/Chronicle-Queue

mappedBytes.reserve();
try {
  mappedBytes.readPosition(0);
  mappedBytes.readLimit(mappedBytes.realCapacity());
  while (mappedWire.readDataHeader()) {
    if (Wires.isNotComplete(header))
      break;
    long readPosition = mappedBytes.readPosition();
    int length = Wires.lengthOf(header);
    ValueIn valueIn = mappedWire.readEventName(sb);
      return valueIn.int64ForBinding(null);
    mappedBytes.readPosition(readPosition + length);
  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);
  LongValue longValue = wireType.newLongReference().get();
origin: OpenHFT/Chronicle-Queue

    "    lastIndex: 0\n" +
    "  }\n" +
    "}\n", Wires.fromSizePrefixedBlobs(bytes.readPosition(0)));
bytes.release();
origin: OpenHFT/Chronicle-Queue

    "  },\n" +
    "  lastAcknowledgedIndexReplicated: 0\n" +
    "}\n", Wires.fromSizePrefixedBlobs(bytes.readPosition(0)));
bytes.release();
origin: net.openhft/chronicle-bytes

@NotNull
@Override
public Bytes<Void> readPositionRemaining(long position, long remaining) throws BufferUnderflowException {
  long limit = position + remaining;
  acquireNextByteStore(position, true);
  if (writeLimit < limit)
    writeLimit(limit);
  boolean debug = false;
  assert debug = true;
  if (debug)
    readLimit(limit);
  else
    uncheckedWritePosition(limit);
  return readPosition(position);
}
origin: net.openhft/chronicle-queue

if (bytes.readPosition() > upperLimit) {
  out.println("# limit reached.");
  return;
origin: net.openhft/chronicle-queue

mappedBytes.reserve();
try {
  mappedBytes.readPosition(0);
  mappedBytes.readLimit(mappedBytes.realCapacity());
  while (mappedWire.readDataHeader()) {
    if (Wires.isNotComplete(header))
      break;
    long readPosition = mappedBytes.readPosition();
    int length = Wires.lengthOf(header);
    ValueIn valueIn = mappedWire.readEventName(sb);
      return valueIn.int64ForBinding(null);
    mappedBytes.readPosition(readPosition + length);
  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);
  LongValue longValue = wireType.newLongReference().get();
net.openhft.chronicle.bytesMappedBytesreadPosition

Popular methods of MappedBytes

  • mappedBytes
  • addressForWrite
  • readLimit
  • release
  • reserve
  • writePosition
  • writeSkip
  • mappedFile
  • readRemaining
  • realCapacity
  • 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)
  • Top plugins for WebStorm
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