Tabnine Logo
PackOutputStream.objectHeader
Code IndexAdd Tabnine to your IDE (free)

How to use
objectHeader
method
in
org.eclipse.jgit.internal.storage.pack.PackOutputStream

Best Java code snippets using org.eclipse.jgit.internal.storage.pack.PackOutputStream.objectHeader (Showing top 3 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

ObjectToPack b = otp.getDeltaBase();
if (b != null && (b.isWritten() & ofsDelta)) { // Non-short-circuit logic is intentional
  int n = objectHeader(rawLength, OBJ_OFS_DELTA, headerBuffer);
  n = ofsDelta(count - b.getOffset(), headerBuffer, n);
  write(headerBuffer, 0, n);
} else if (otp.isDeltaRepresentation()) {
  int n = objectHeader(rawLength, OBJ_REF_DELTA, headerBuffer);
  otp.getDeltaBaseId().copyRawTo(headerBuffer, n);
  write(headerBuffer, 0, n + 20);
} else {
  int n = objectHeader(rawLength, otp.getType(), headerBuffer);
  write(headerBuffer, 0, n);
origin: berlam/github-bucket

ObjectToPack b = otp.getDeltaBase();
if (b != null && (b.isWritten() & ofsDelta)) { // Non-short-circuit logic is intentional
  int n = objectHeader(rawLength, OBJ_OFS_DELTA, headerBuffer);
  n = ofsDelta(count - b.getOffset(), headerBuffer, n);
  write(headerBuffer, 0, n);
} else if (otp.isDeltaRepresentation()) {
  int n = objectHeader(rawLength, OBJ_REF_DELTA, headerBuffer);
  otp.getDeltaBaseId().copyRawTo(headerBuffer, n);
  write(headerBuffer, 0, n + 20);
} else {
  int n = objectHeader(rawLength, otp.getType(), headerBuffer);
  write(headerBuffer, 0, n);
origin: sonia.jgit/org.eclipse.jgit

ObjectToPack b = otp.getDeltaBase();
if (b != null && (b.isWritten() & ofsDelta)) {
  int n = objectHeader(rawLength, OBJ_OFS_DELTA, headerBuffer);
  n = ofsDelta(count - b.getOffset(), headerBuffer, n);
  write(headerBuffer, 0, n);
} else if (otp.isDeltaRepresentation()) {
  int n = objectHeader(rawLength, OBJ_REF_DELTA, headerBuffer);
  otp.getDeltaBaseId().copyRawTo(headerBuffer, n);
  write(headerBuffer, 0, n + 20);
} else {
  int n = objectHeader(rawLength, otp.getType(), headerBuffer);
  write(headerBuffer, 0, n);
org.eclipse.jgit.internal.storage.packPackOutputStreamobjectHeader

Popular methods of PackOutputStream

  • <init>
    Initialize a pack output stream. This constructor is exposed to support debugging the JGit library o
  • endObject
  • flush
  • getCopyBuffer
  • getDigest
  • length
  • ofsDelta
  • ofsDeltaVarIntLength
  • write
  • writeFileHeader
  • writeHeader
    Commits the object header onto the stream. Once the header has been written, the object representati
  • writeObject
    Write one object. If the object was already written, this method does nothing and returns quickly. T
  • writeHeader,
  • writeObject

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Reference (javax.naming)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best IntelliJ plugins
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