Codota Logo
CRC
Code IndexAdd Codota to your IDE (free)

How to use
CRC
in
com.mxgraph.util.png

Best Java code snippets using com.mxgraph.util.png.CRC (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.tinyjee.jgraphx/jgraphx

public void writeToStream(DataOutputStream output) throws IOException
{
  byte[] typeSignature = new byte[4];
  typeSignature[0] = (byte) type.charAt(0);
  typeSignature[1] = (byte) type.charAt(1);
  typeSignature[2] = (byte) type.charAt(2);
  typeSignature[3] = (byte) type.charAt(3);
  dos.flush();
  baos.flush();
  byte[] data = baos.toByteArray();
  int len = data.length;
  output.writeInt(len);
  output.write(typeSignature);
  output.write(data, 0, len);
  int crc = 0xffffffff;
  crc = CRC.updateCRC(crc, typeSignature, 0, 4);
  crc = CRC.updateCRC(crc, data, 0, len);
  output.writeInt(crc ^ 0xffffffff);
}
origin: com.github.vlsi.mxgraph/jgraphx

public void writeToStream(DataOutputStream output) throws IOException
{
  byte[] typeSignature = new byte[4];
  typeSignature[0] = (byte) type.charAt(0);
  typeSignature[1] = (byte) type.charAt(1);
  typeSignature[2] = (byte) type.charAt(2);
  typeSignature[3] = (byte) type.charAt(3);
  dos.flush();
  baos.flush();
  byte[] data = baos.toByteArray();
  int len = data.length;
  output.writeInt(len);
  output.write(typeSignature);
  output.write(data, 0, len);
  int crc = 0xffffffff;
  crc = CRC.updateCRC(crc, typeSignature, 0, 4);
  crc = CRC.updateCRC(crc, data, 0, len);
  output.writeInt(crc ^ 0xffffffff);
}
origin: org.tinyjee.jgraphx/jgraphx

public void flush() throws IOException
{
  // Length
  writeInt(bytesWritten);
  // 'IDAT' signature
  out.write(typeSignature);
  // Data
  out.write(buffer, 0, bytesWritten);
  int crc = 0xffffffff;
  crc = CRC.updateCRC(crc, typeSignature, 0, 4);
  crc = CRC.updateCRC(crc, buffer, 0, bytesWritten);
  // CRC
  writeInt(crc ^ 0xffffffff);
  // Reset buffer
  bytesWritten = 0;
}
origin: com.github.vlsi.mxgraph/jgraphx

public void flush() throws IOException
{
  // Length
  writeInt(bytesWritten);
  // 'IDAT' signature
  out.write(typeSignature);
  // Data
  out.write(buffer, 0, bytesWritten);
  int crc = 0xffffffff;
  crc = CRC.updateCRC(crc, typeSignature, 0, 4);
  crc = CRC.updateCRC(crc, buffer, 0, bytesWritten);
  // CRC
  writeInt(crc ^ 0xffffffff);
  // Reset buffer
  bytesWritten = 0;
}
com.mxgraph.util.pngCRC

Most used methods

  • updateCRC

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JTextField (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now