org.jnetpcap.util
Class DataUtils

java.lang.Object
  extended by org.jnetpcap.util.DataUtils

public class DataUtils
extends java.lang.Object

Various data manipulation utilities.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Constructor Summary
DataUtils()
           
 
Method Summary
static byte[] diff(byte[] b1, byte[] b2)
          Returns the difference between b1 and b2.
static byte[] diff(byte[] b1, JBuffer b2)
          Returns the difference between b1 and b2.
static byte[] diff(JBuffer b1, JBuffer b2)
          Returns the difference between b1 and b2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataUtils

public DataUtils()
Method Detail

diff

public static byte[] diff(JBuffer b1,
                          JBuffer b2)
Returns the difference between b1 and b2. b1 is subtracted from b2.

Parameters:
b1 -
b2 -
Returns:
array containing the different between b1 and b2

diff

public static byte[] diff(byte[] b1,
                          JBuffer b2)
Returns the difference between b1 and b2. b1 is subtracted from b2.

Parameters:
b1 -
b2 -
Returns:
array containing the different between b1 and b2

diff

public static byte[] diff(byte[] b1,
                          byte[] b2)
Returns the difference between b1 and b2. b1 is subtracted from b2.

Parameters:
b1 -
b2 -
Returns:
array containing the different between b1 and b2