RegularByteTransformTransByte 方法 |
名称 | 说明 | |
---|---|---|
TransByte(Boolean) |
bool变量转化缓存数据,一般来说单bool只能转化为0x01 或是 0x00 The bool variable is converted to cache data, a single bool can only be converted to 0x01 or 0x00 | |
TransByte(Boolean) |
将bool数组变量转化缓存数据,如果数组长度不满足8的倍数,则自动补0操作。 Convert the bool array variable to the cache data. If the length of the array does not meet a multiple of 8, it will automatically add 0. | |
TransByte(Byte) |
将byte变量转化缓存数据 Convert byte variables into cached data | |
TransByte(Double) |
double变量转化缓存数据,一个double数据可以转为8个字节的byte数组 The double variable is converted to cache data, a double data can be converted into an 8-byte byte array | |
TransByte(Double) |
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 | |
TransByte(Int16) |
short变量转化缓存数据,一个short数据可以转为2个字节的byte数组 Short variable is converted to cache data, a short data can be converted into a 2-byte byte array | |
TransByte(Int16) |
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 | |
TransByte(Int32) |
int变量转化缓存数据,一个int数据可以转为4个字节的byte数组 Int variable converts cache data, an int data can be converted into a 4-byte byte array | |
TransByte(Int32) |
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 | |
TransByte(Int64) |
long变量转化缓存数据,一个long数据可以转为8个字节的byte数组 Long variable is converted into cache data, a long data can be converted into 8-byte byte array | |
TransByte(Int64) |
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 | |
TransByte(Single) |
float变量转化缓存数据,一个float数据可以转为4个字节的byte数组 Float variable is converted into cache data, a float data can be converted into a 4-byte byte array | |
TransByte(Single) |
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 | |
TransByte(UInt16) |
ushort变量转化缓存数据,一个ushort数据可以转为2个字节的Byte数组 ushort variable converts buffer data, a ushort data can be converted into a 2-byte Byte array | |
TransByte(UInt16) |
ushort数组变量转化缓存数据,n个长度的ushort数组,可以转为2*n个长度的byte数组 The ushort array variable transforms the buffer data, the ushort array of n length can be converted into a byte array of 2*n length | |
TransByte(UInt32) |
uint变量转化缓存数据,一个uint数据可以转为4个字节的byte数组 uint variable converts buffer data, a uint data can be converted into a 4-byte byte array | |
TransByte(UInt32) |
uint数组变量转化缓存数据,n个长度的uint数组,可以转为4*n个长度的byte数组 uint array variable converts buffer data, uint array of n length can be converted to byte array of 4*n length | |
TransByte(UInt64) |
ulong变量转化缓存数据,一个ulong数据可以转为8个字节的byte数组 Ulong variable converts cache data, a ulong data can be converted into 8-byte byte array | |
TransByte(UInt64) |
ulong数组变量转化缓存数据,n个长度的ulong数组,可以转为8*n个长度的byte数组 The ulong array variable transforms the buffer data, the ulong array of n length can be converted to the byte array of 8*n length | |
TransByte(Byte, Int32) |
从缓存中提取byte结果,需要指定起始的字节索引 To extract the byte result from the cache, you need to specify the starting byte index | |
TransByte(String, Encoding) |
使用指定的编码字符串转化缓存数据 Use the specified encoding string to convert the cached data | |
TransByte(Byte, Int32, Int32) |
从缓存中提取byte数组结果,需要指定起始的字节索引,以及指定读取的字节长度 To extract the byte array result from the cache, you need to specify the starting byte index and the byte length to be read | |
TransByte(String, Int32, Encoding) |
使用指定的编码字符串转化缓存数据,指定转换之后的字节长度信息 Use the specified encoding string to convert the cached data, specify the byte length information after conversion |