EncodingUtils.GetAsciiString 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| GetAsciiString(Byte[]) |
将 ASCII 字符的字节数组转换为字符串。 |
| GetAsciiString(Byte[], Int32, Int32) |
将 ASCII 字符的字节数组转换为字符串。 |
GetAsciiString(Byte[])
将 ASCII 字符的字节数组转换为字符串。
[Android.Runtime.Register("getAsciiString", "([B)Ljava/lang/String;", "")]
public static string? GetAsciiString(byte[]? data);
[<Android.Runtime.Register("getAsciiString", "([B)Ljava/lang/String;", "")>]
static member GetAsciiString : byte[] -> string
参数
- data
- Byte[]
要编码的字节数组
返回
- 属性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
GetAsciiString(Byte[], Int32, Int32)
将 ASCII 字符的字节数组转换为字符串。
[Android.Runtime.Register("getAsciiString", "([BII)Ljava/lang/String;", "")]
public static string? GetAsciiString(byte[]? data, int offset, int length);
[<Android.Runtime.Register("getAsciiString", "([BII)Ljava/lang/String;", "")>]
static member GetAsciiString : byte[] * int * int -> string
参数
- data
- Byte[]
要编码的字节数组
- offset
- Int32
要编码的第一个字节的索引
- length
- Int32
要编码的字节数
返回
- 属性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。