Tabnine Logo
CRC.updateCRC
Code IndexAdd Tabnine to your IDE (free)

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

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

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.pngCRCupdateCRC

Popular methods of CRC

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • scheduleAtFixedRate (ScheduledExecutorService)
    • getExternalFilesDir (Context)
    • getContentResolver (Context)
    • Graphics2D (java.awt)
      This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
    • BufferedInputStream (java.io)
      A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
    • MalformedURLException (java.net)
      This exception is thrown when a program attempts to create an URL from an incorrect specification.
    • HashSet (java.util)
      HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
    • JLabel (javax.swing)
    • JOptionPane (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