Tabnine Logo
DataUtils.writeVarLong
Code IndexAdd Tabnine to your IDE (free)

How to use
writeVarLong
method
in
org.h2.mvstore.DataUtils

Best Java code snippets using org.h2.mvstore.DataUtils.writeVarLong (Showing top 12 results out of 315)

origin: com.h2database/h2

private ByteArrayOutputStream putIndirectId(ByteArrayOutputStream id)
    throws IOException {
  byte[] data = id.toByteArray();
  id = new ByteArrayOutputStream();
  // indirect: 2, total len (long), blockId (long)
  id.write(2);
  DataUtils.writeVarLong(id, length(data));
  DataUtils.writeVarLong(id, writeBlock(data));
  return id;
}
origin: com.h2database/h2

/**
 * Write a variable size long.
 *
 * @param x the value
 * @return this
 */
public WriteBuffer putVarLong(long x) {
  DataUtils.writeVarLong(ensureCapacity(10), x);
  return this;
}
origin: com.h2database/h2

DataUtils.writeVarLong(id, writeBlock(buff));
origin: com.h2database/h2-mvstore

/**
 * Write a variable size long.
 *
 * @param x the value
 * @return this
 */
public WriteBuffer putVarLong(long x) {
  DataUtils.writeVarLong(ensureCapacity(10), x);
  return this;
}
origin: com.h2database/h2-mvstore

private ByteArrayOutputStream putIndirectId(ByteArrayOutputStream id)
    throws IOException {
  byte[] data = id.toByteArray();
  id = new ByteArrayOutputStream();
  // indirect: 2, total len (long), blockId (long)
  id.write(2);
  DataUtils.writeVarLong(id, length(data));
  DataUtils.writeVarLong(id, writeBlock(data));
  return id;
}
origin: com.eventsourcing/h2

/**
 * Write a variable size long.
 *
 * @param x the value
 * @return this
 */
public WriteBuffer putVarLong(long x) {
  DataUtils.writeVarLong(ensureCapacity(10), x);
  return this;
}
origin: org.wowtools/h2

/**
 * Write a variable size long.
 *
 * @param x the value
 * @return this
 */
public WriteBuffer putVarLong(long x) {
  DataUtils.writeVarLong(ensureCapacity(10), x);
  return this;
}
origin: com.eventsourcing/h2

private ByteArrayOutputStream putIndirectId(ByteArrayOutputStream id)
    throws IOException {
  byte[] data = id.toByteArray();
  id = new ByteArrayOutputStream();
  // indirect: 2, total len (long), blockId (long)
  id.write(2);
  DataUtils.writeVarLong(id, length(data));
  DataUtils.writeVarLong(id, writeBlock(data));
  return id;
}
origin: org.wowtools/h2

private ByteArrayOutputStream putIndirectId(ByteArrayOutputStream id)
    throws IOException {
  byte[] data = id.toByteArray();
  id = new ByteArrayOutputStream();
  // indirect: 2, total len (long), blockId (long)
  id.write(2);
  DataUtils.writeVarLong(id, length(data));
  DataUtils.writeVarLong(id, writeBlock(data));
  return id;
}
origin: com.h2database/h2-mvstore

DataUtils.writeVarLong(id, writeBlock(buff));
origin: org.wowtools/h2

DataUtils.writeVarLong(id, writeBlock(buff));
origin: com.eventsourcing/h2

DataUtils.writeVarLong(id, writeBlock(buff));
org.h2.mvstoreDataUtilswriteVarLong

Javadoc

Write a variable size long.

Popular methods of DataUtils

  • readVarInt
    Read a variable size int.
  • appendMap
    Append a map to the string builder, sorted by key.
  • checkArgument
    Throw an IllegalArgumentException if the argument is invalid.
  • copyExcept
    Copy the elements of an array, and remove one element.
  • copyWithGap
    Copy the elements of an array, with a gap.
  • encodeLength
    Convert the length to a length code 0..31. 31 means more than 1 MB.
  • formatMessage
    Format an error message.
  • getCheckValue
    Calculate a check value for the given integer. A check value is mean to verify the data is consisten
  • getErrorCode
    Get the error code from an exception message.
  • getFletcher32
    Calculate the Fletcher32 checksum.
  • getPageChunkId
    Get the chunk id from the position.
  • getPageMaxLength
    Get the maximum length for the given code. For the code 31, PAGE_LARGE is returned.
  • getPageChunkId,
  • getPageMaxLength,
  • getPageOffset,
  • getPagePos,
  • getPageType,
  • getVarIntLen,
  • initCause,
  • newIllegalArgumentException,
  • newIllegalStateException,
  • newUnsupportedOperationException

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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