点击或拖拽改变大小

IByteTransformTransByte 方法 (String, Int32, Encoding)

使用指定的编码字符串转化缓存数据,指定转换之后的字节长度信息
Use the specified encoding string to convert the cached data, specify the byte length information after conversion

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

参数

value
类型:SystemString
等待转化的数据
length
类型:SystemInt32
转换之后的数据长度
encoding
类型:System.TextEncoding
字符串的编码方式

返回值

类型:Byte
buffer数据
参见