点击或拖拽改变大小

IByteTransformTransString 方法 (Byte, Int32, Int32, Encoding)

从缓存中的部分字节数组转化为string结果,使用指定的编码,指定起始的字节索引,字节长度信息。
Convert a part of the byte array in the buffer into a string result, use the specified encoding, specify the starting byte index, and byte length information.

命名空间:  HslCommunication.Core
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
string TransString(
	byte[] buffer,
	int index,
	int length,
	Encoding encoding
)

参数

buffer
类型:SystemByte
缓存对象
index
类型:SystemInt32
索引位置
length
类型:SystemInt32
byte数组长度
encoding
类型:System.TextEncoding
字符串的编码

返回值

类型:String
string对象
参见