public class ReverseWordTransform extends ByteTransformBase
| 构造器和说明 |
|---|
ReverseWordTransform()
实例化一个默认的对象
|
ReverseWordTransform(DataFormat dataFormat)
实例化一个默认的对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
IByteTransform |
CreateByDateFormat(DataFormat dataFormat)
根据指定的
DataFormat 格式,来实例化一个新的对象,除了DataFormat不同,其他都相同ccording to the specified DataFormat format, to instantiate a new object, except that DataFormat is different, everything else is the same |
byte[] |
TransByte(boolean[] values)
将bool数组变量转化缓存数据,如果数组长度不满足8的倍数,则自动补0操作。
|
byte[] |
TransByte(short[] values)
short数组变量转化缓存数据,n个长度的short数组,可以转为2*n个长度的byte数组
The short array variable transforms the buffered data, a short array of n lengths can be converted into a byte array of 2*n lengths |
byte[] |
TransByte(String value,
String encoding) |
short |
TransInt16(byte[] buffer,
int index)
从缓存中提取short结果,需要指定起始的字节索引,按照字节为单位,一个short占用两个字节
To extract short results from the cache, you need to specify the starting byte index, in bytes, A short occupies two bytes |
String |
TransString(byte[] buffer,
int index,
int length,
String encoding) |
int |
TransUInt16(byte[] buffer,
int index)
从缓存中提取ushort结果,需要指定起始的字节索引,按照字节为单位,一个ushort占用两个字节
To extract ushort results from the cache, you need to specify the starting byte index, in bytes, A ushort occupies two bytes |
ByteTransDataFormat4, ByteTransDataFormat4, ByteTransDataFormat8, ByteTransDataFormat8, getDataFormat, getIsStringReverse, setDataFormat, setIsStringReverse, toString, TransBool, TransBool, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransDouble, TransDouble, TransInt16, TransInt32, TransInt32, TransInt64, TransInt64, TransSingle, TransSingle, TransString, TransUInt16, TransUInt32, TransUInt32public ReverseWordTransform()
public ReverseWordTransform(DataFormat dataFormat)
public short TransInt16(byte[] buffer,
int index)
IByteTransformTransInt16 在接口中 IByteTransformTransInt16 在类中 ByteTransformBasebuffer - 缓存数据index - 索引位置public int TransUInt16(byte[] buffer,
int index)
IByteTransformTransUInt16 在接口中 IByteTransformTransUInt16 在类中 ByteTransformBasebuffer - 缓存数据index - 索引位置public byte[] TransByte(boolean[] values)
IByteTransformTransByte 在接口中 IByteTransformTransByte 在类中 ByteTransformBasevalues - 等待转化的数组public byte[] TransByte(short[] values)
IByteTransformTransByte 在接口中 IByteTransformTransByte 在类中 ByteTransformBasevalues - 等待转化的数组public IByteTransform CreateByDateFormat(DataFormat dataFormat)
IByteTransformDataFormat 格式,来实例化一个新的对象,除了DataFormat不同,其他都相同DataFormat format, to instantiate a new object, except that DataFormat is different, everything else is the sameCreateByDateFormat 在接口中 IByteTransformCreateByDateFormat 在类中 ByteTransformBasedataFormat - 数据格式Copyright © 2022. All rights reserved.