com.eurotech.demo.power.system.protocol
Class ProtocolUtils

java.lang.Object
  extended by com.eurotech.demo.power.system.protocol.ProtocolUtils

public class ProtocolUtils
extends Object


Constructor Summary
ProtocolUtils()
           
 
Method Summary
static short getSigned16(byte[] buf, int offset)
           
static int getSigned32(byte[] buf, int offset)
           
static byte getSigned8(byte[] buf, int offset)
           
static int getUnsigned16(byte[] buf, int offset)
           
static long getUnsigned32(byte[] buf, int offset)
           
static short getUnsigned8(byte[] buf, int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolUtils

public ProtocolUtils()
Method Detail

getSigned8

public static byte getSigned8(byte[] buf,
                              int offset)

getUnsigned8

public static short getUnsigned8(byte[] buf,
                                 int offset)

getSigned16

public static short getSigned16(byte[] buf,
                                int offset)

getUnsigned16

public static int getUnsigned16(byte[] buf,
                                int offset)

getSigned32

public static int getSigned32(byte[] buf,
                              int offset)

getUnsigned32

public static long getUnsigned32(byte[] buf,
                                 int offset)


Copyright © 2013. All Rights Reserved.