RegularByteTransformTransString 方法 (Byte, Encoding) |
从缓存中提取string结果,使用指定的编码将全部的缓存转为字符串
Extract the string result from the cache, use the specified encoding to convert all the cache into a string
命名空间:
HslCommunication.Core
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public virtual string TransString(
byte[] buffer,
Encoding encoding
)
Public Overridable Function TransString (
buffer As Byte(),
encoding As Encoding
) As String
public:
virtual String^ TransString(
array<unsigned char>^ buffer,
Encoding^ encoding
)
abstract TransString :
buffer : byte[] *
encoding : Encoding -> string
override TransString :
buffer : byte[] *
encoding : Encoding -> string
参数
- buffer
- 类型:SystemByte
缓存对象 - encoding
- 类型:System.TextEncoding
字符串的编码
返回值
类型:
Stringstring对象
实现
IByteTransformTransString(Byte, Encoding)参见