congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PackOutputStream.getCopyBuffer
Code IndexAdd Tabnine to your IDE (free)

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

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

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

private ByteBuffer newCopyBuffer(PackOutputStream out, ReadableChannel rc) {
  int bs = blockSize(rc);
  byte[] copyBuf = out.getCopyBuffer();
  if (bs > copyBuf.length)
    copyBuf = new byte[bs];
  return ByteBuffer.wrap(copyBuf, 0, bs);
}
origin: org.eclipse.jgit/org.eclipse.jgit

@Override
void write(PackOutputStream out, long pos, int cnt)
    throws IOException {
  final ByteBuffer s = buffer.slice();
  s.position((int) (pos - start));
  while (0 < cnt) {
    byte[] buf = out.getCopyBuffer();
    int n = Math.min(cnt, buf.length);
    s.get(buf, 0, n);
    out.write(buf, 0, n);
    cnt -= n;
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit

final CRC32 crc1 = validate ? new CRC32() : null;
final CRC32 crc2 = validate ? new CRC32() : null;
final byte[] buf = out.getCopyBuffer();
origin: org.eclipse.jgit/org.eclipse.jgit

final CRC32 crc1 = validate ? new CRC32() : null;
final CRC32 crc2 = validate ? new CRC32() : null;
final byte[] buf = out.getCopyBuffer();
origin: sonia.jgit/org.eclipse.jgit

private ByteBuffer newCopyBuffer(PackOutputStream out, ReadableChannel rc) {
  int bs = blockSize(rc);
  byte[] copyBuf = out.getCopyBuffer();
  if (bs > copyBuf.length)
    copyBuf = new byte[bs];
  return ByteBuffer.wrap(copyBuf, 0, bs);
}
origin: berlam/github-bucket

private ByteBuffer newCopyBuffer(PackOutputStream out, ReadableChannel rc) {
  int bs = blockSize(rc);
  byte[] copyBuf = out.getCopyBuffer();
  if (bs > copyBuf.length)
    copyBuf = new byte[bs];
  return ByteBuffer.wrap(copyBuf, 0, bs);
}
origin: sonia.jgit/org.eclipse.jgit

@Override
void write(PackOutputStream out, long pos, int cnt)
    throws IOException {
  final ByteBuffer s = buffer.slice();
  s.position((int) (pos - start));
  while (0 < cnt) {
    byte[] buf = out.getCopyBuffer();
    int n = Math.min(cnt, buf.length);
    s.get(buf, 0, n);
    out.write(buf, 0, n);
    cnt -= n;
  }
}
origin: berlam/github-bucket

@Override
void write(PackOutputStream out, long pos, int cnt)
    throws IOException {
  final ByteBuffer s = buffer.slice();
  s.position((int) (pos - start));
  while (0 < cnt) {
    byte[] buf = out.getCopyBuffer();
    int n = Math.min(cnt, buf.length);
    s.get(buf, 0, n);
    out.write(buf, 0, n);
    cnt -= n;
  }
}
origin: berlam/github-bucket

final CRC32 crc1 = validate ? new CRC32() : null;
final CRC32 crc2 = validate ? new CRC32() : null;
final byte[] buf = out.getCopyBuffer();
origin: berlam/github-bucket

final CRC32 crc1 = validate ? new CRC32() : null;
final CRC32 crc2 = validate ? new CRC32() : null;
final byte[] buf = out.getCopyBuffer();
origin: sonia.jgit/org.eclipse.jgit

final CRC32 crc1 = validate ? new CRC32() : null;
final CRC32 crc2 = validate ? new CRC32() : null;
final byte[] buf = out.getCopyBuffer();
origin: sonia.jgit/org.eclipse.jgit

final CRC32 crc1 = validate ? new CRC32() : null;
final CRC32 crc2 = validate ? new CRC32() : null;
final byte[] buf = out.getCopyBuffer();
org.eclipse.jgit.internal.storage.packPackOutputStreamgetCopyBuffer

Javadoc

Get a temporary buffer writers can use to copy data with.

Popular methods of PackOutputStream

  • <init>
    Initialize a pack output stream. This constructor is exposed to support debugging the JGit library o
  • endObject
  • flush
  • getDigest
  • length
  • objectHeader
  • 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

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Collectors (java.util.stream)
  • Top plugins for WebStorm
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