public class ReverseBytesTransform extends ByteTransformBase
| 构造器和说明 |
|---|
ReverseBytesTransform() |
ReverseBytesTransform(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(double[] values)
double数组变量转化缓存数据,n个长度的double数组,可以转为8*n个长度的byte数组
The double array variable transforms the buffer data, the double array of n length can be converted to the byte array of 8*n length |
byte[] |
TransByte(float[] values)
float数组变量转化缓存数据,n个长度的float数组,可以转为4*n个长度的byte数组
Float array variable converts buffer data, n-length float array can be converted into 4*n-length byte array |
byte[] |
TransByte(int[] values)
int数组变量转化缓存数据,n个长度的int数组,可以转为4*n个长度的byte数组
The int array variable transforms the cache data, the int array of n length can be converted to the byte array of 4*n length |
byte[] |
TransByte(long[] values)
long数组变量转化缓存数据,n个长度的long数组,可以转为8*n个长度的byte数组
The long array variable transforms the buffer data, the long array of n length can be converted into the byte array of 8*n length |
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 |
double |
TransDouble(byte[] buffer,
int index)
从缓存中提取double结果,需要指定起始的字节索引,按照字节为单位,一个double占用八个字节
To extract the double result from the cache, you need to specify the starting byte index, in bytes, A double occupies eight bytes |
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 |
int |
TransInt32(byte[] buffer,
int index)
从缓存中提取int结果,需要指定起始的字节索引,按照字节为单位,一个int占用四个字节
To extract the int result from the cache, you need to specify the starting byte index, in bytes, A int occupies four bytes |
long |
TransInt64(byte[] buffer,
int index)
从缓存中提取long结果,需要指定起始的字节索引,按照字节为单位,一个long占用八个字节
To extract the long result from the cache, you need to specify the starting byte index, in bytes, A long occupies eight bytes |
float |
TransSingle(byte[] buffer,
int index)
从缓存中提取float结果,需要指定起始的字节索引,按照字节为单位,一个float占用四个字节
To extract the float result from the cache, you need to specify the starting byte index, in units of bytes, A float occupies four bytes
|
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 |
long |
TransUInt32(byte[] buffer,
int index)
从缓存中提取uint结果,需要指定起始的字节索引,按照字节为单位,一个uint占用四个字节
To extract uint results from the cache, you need to specify the starting byte index, in bytes, A uint occupies four bytes |
ByteTransDataFormat4, ByteTransDataFormat4, ByteTransDataFormat8, ByteTransDataFormat8, getDataFormat, getIsStringReverse, setDataFormat, setIsStringReverse, toString, TransBool, TransBool, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransByte, TransDouble, TransInt16, TransInt32, TransInt64, TransSingle, TransString, TransUInt16, TransUInt32public ReverseBytesTransform()
public ReverseBytesTransform(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 int TransInt32(byte[] buffer,
int index)
IByteTransformTransInt32 在接口中 IByteTransformTransInt32 在类中 ByteTransformBasebuffer - 缓存数据index - 索引位置public long TransUInt32(byte[] buffer,
int index)
IByteTransformTransUInt32 在接口中 IByteTransformTransUInt32 在类中 ByteTransformBasebuffer - 缓存数据index - 索引位置public long TransInt64(byte[] buffer,
int index)
IByteTransformTransInt64 在接口中 IByteTransformTransInt64 在类中 ByteTransformBasebuffer - 缓存数据index - 索引位置public float TransSingle(byte[] buffer,
int index)
IByteTransformTransSingle 在接口中 IByteTransformTransSingle 在类中 ByteTransformBasebuffer - 缓存对象index - 索引位置public double TransDouble(byte[] buffer,
int index)
IByteTransformTransDouble 在接口中 IByteTransformTransDouble 在类中 ByteTransformBasebuffer - 缓存对象index - 索引位置public byte[] TransByte(short[] values)
IByteTransformTransByte 在接口中 IByteTransformTransByte 在类中 ByteTransformBasevalues - 等待转化的数组public byte[] TransByte(int[] values)
IByteTransformTransByte 在接口中 IByteTransformTransByte 在类中 ByteTransformBasevalues - 等待转化的数组public byte[] TransByte(long[] values)
IByteTransformTransByte 在接口中 IByteTransformTransByte 在类中 ByteTransformBasevalues - 等待转化的数组public byte[] TransByte(float[] values)
IByteTransformTransByte 在接口中 IByteTransformTransByte 在类中 ByteTransformBasevalues - 等待转化的数组public byte[] TransByte(double[] 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.