#
luxiaotao1123
2020-08-04 6abc20e29568c129f4ca71eccec9310534a8c779
src/main/java/com/zy/common/HslCommunication/Core/Transfer/IByteTransform.java
File was renamed from src/main/java/com/zy/gateway/core/transfer/IByteTransform.java
@@ -1,4 +1,4 @@
package com.zy.gateway.core.transfer;
package com.zy.common.HslCommunication.Core.Transfer;
public interface IByteTransform {
@@ -10,7 +10,7 @@
     * @param index 索引位置
     * @return boolean值
     */
    boolean TransBool(byte[] buffer, int index);
    boolean TransBool( byte[] buffer, int index );
    /**
     * 缓存中提取byte结果
@@ -18,7 +18,7 @@
     * @param index 索引位置
     * @return byte对象
     */
    byte TransByte(byte[] buffer, int index);
    byte TransByte( byte[] buffer, int index );
    /**
     * 从缓存中提取byte数组结果
@@ -27,7 +27,7 @@
     * @param length 读取的数组长度
     * @return
     */
    byte[] TransByte(byte[] buffer, int index, int length);
    byte[] TransByte( byte[] buffer, int index, int length );
    /**
     * 从缓存中提取short结果
@@ -35,7 +35,7 @@
     * @param index 索引位置
     * @return short对象
     */
    short TransInt16(byte[] buffer, int index);
    short TransInt16( byte[] buffer, int index );
    /**
     * 从缓存中提取short结果
@@ -44,7 +44,7 @@
     * @param length 读取的数组长度
     * @return short数组对象
     */
    short[] TransInt16(byte[] buffer, int index, int length);
    short[] TransInt16( byte[] buffer, int index, int length );
    /**
     * 从缓存中提取int结果
@@ -52,7 +52,7 @@
     * @param index 索引位置
     * @return int对象
     */
    int TransInt32(byte[] buffer, int index);
    int TransInt32( byte[] buffer, int index );
    /**
@@ -62,7 +62,7 @@
     * @param length 读取的数组长度
     * @return int数组对象
     */
    int[] TransInt32(byte[] buffer, int index, int length);
    int[] TransInt32( byte[] buffer, int index, int length );
    /**
@@ -71,7 +71,7 @@
     * @param index 索引位置
     * @return long对象
     */
    long TransInt64(byte[] buffer, int index);
    long TransInt64( byte[] buffer, int index );
    /**
@@ -81,7 +81,7 @@
     * @param length 读取的数组长度
     * @return long数组对象
     */
    long[] TransInt64(byte[] buffer, int index, int length);
    long[] TransInt64( byte[] buffer, int index, int length );
    /**
@@ -90,7 +90,7 @@
     * @param index 索引位置
     * @return float对象
     */
    float TransSingle(byte[] buffer, int index);
    float TransSingle( byte[] buffer, int index );
    /**
@@ -100,7 +100,7 @@
     * @param length 读取的数组长度
     * @return float数组对象
     */
    float[] TransSingle(byte[] buffer, int index, int length);
    float[] TransSingle( byte[] buffer, int index, int length );
    /**
@@ -109,7 +109,7 @@
     * @param index 索引位置
     * @return double对象
     */
    double TransDouble(byte[] buffer, int index);
    double TransDouble( byte[] buffer, int index );
    /**
@@ -119,7 +119,7 @@
     * @param length 读取的数组长度
     * @return double数组
     */
    double[] TransDouble(byte[] buffer, int index, int length);
    double[] TransDouble( byte[] buffer, int index, int length );
    /**
@@ -130,7 +130,7 @@
     * @param encoding 字符串的编码
     * @return string对象
     */
    String TransString(byte[] buffer, int index, int length, String encoding);
    String TransString( byte[] buffer, int index, int length, String encoding );
@@ -147,7 +147,7 @@
     * @param value 等待转化的数据
     * @return buffer数据
     */
    byte[] TransByte(boolean value);
    byte[] TransByte( boolean value );
    /**
@@ -155,7 +155,7 @@
     * @param values 等待转化的数组
     * @return buffer数据
     */
    byte[] TransByte(boolean[] values);
    byte[] TransByte( boolean[] values );
    /**
@@ -163,21 +163,21 @@
     * @param value 等待转化的数据
     * @return buffer数据
     */
    byte[] TransByte(byte value);
    byte[] TransByte( byte value );
    /**
     * short变量转化缓存数据
     * @param value 等待转化的数据
     * @return buffer数据
     */
    byte[] TransByte(short value);
    byte[] TransByte( short value );
    /**
     * short数组变量转化缓存数据
     * @param values 等待转化的数组
     * @return buffer数据
     */
    byte[] TransByte(short[] values);
    byte[] TransByte( short[] values );
    /**
@@ -185,7 +185,7 @@
     * @param value 等待转化的数据
     * @return buffer数据
     */
    byte[] TransByte(int value);
    byte[] TransByte( int value );
    /**
@@ -193,14 +193,14 @@
     * @param values 等待转化的数组
     * @return buffer数据
     */
    byte[] TransByte(int[] values);
    byte[] TransByte( int[] values );
    /**
     * long变量转化缓存数据
     * @param value 等待转化的数据
     * @return buffer数据
     */
    byte[] TransByte(long value);
    byte[] TransByte( long value );
    /**
@@ -208,7 +208,7 @@
     * @param values 等待转化的数组
     * @return v
     */
    byte[] TransByte(long[] values);
    byte[] TransByte( long[] values );
    /**
@@ -216,7 +216,7 @@
     * @param value 等待转化的数据
     * @return buffer数据
     */
    byte[] TransByte(float value);
    byte[] TransByte( float value );
    /**
@@ -224,7 +224,7 @@
     * @param values 等待转化的数组
     * @return buffer数据
     */
    byte[] TransByte(float[] values);
    byte[] TransByte( float[] values );
    /**
@@ -232,14 +232,14 @@
     * @param value 等待转化的数据
     * @return buffer数据
     */
    byte[] TransByte(double value);
    byte[] TransByte( double value );
    /**
     * double数组变量转化缓存数据
     * @param values 等待转化的数组
     * @return buffer数据
     */
    byte[] TransByte(double[] values);
    byte[] TransByte( double[] values );
    /**
     * 使用指定的编码字符串转化缓存数据
@@ -247,14 +247,14 @@
     * @param encoding 字符串的编码方式
     * @return buffer数据
     */
    byte[] TransByte(String value, String encoding);
    byte[] TransByte( String value, String encoding );
    /**
     * 设置数据解析的格式,ABCD,BADC,CDAB,DCBA格式
     * @param dataFormat
     */
    void setDataFormat(DataFormat dataFormat);
    void setDataFormat( DataFormat dataFormat );
    /**
     * 获取数据解析的格式,默认ABCD,可选BADC,CDAB,DCBA格式