EncodingUtils.GetString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetString(Byte[], String) |
Converts the byte array of HTTP content characters to a string. |
GetString(Byte[], Int32, Int32, String) |
Converts the byte array of HTTP content characters to a string. |
GetString(Byte[], String)
Converts the byte array of HTTP content characters to a string.
[Android.Runtime.Register("getString", "([BLjava/lang/String;)Ljava/lang/String;", "")]
public static string? GetString (byte[]? data, string? charset);
[<Android.Runtime.Register("getString", "([BLjava/lang/String;)Ljava/lang/String;", "")>]
static member GetString : byte[] * string -> string
Parameters
- data
- Byte[]
the byte array to be encoded
- charset
- String
the desired character encoding
Returns
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
GetString(Byte[], Int32, Int32, String)
Converts the byte array of HTTP content characters to a string.
[Android.Runtime.Register("getString", "([BIILjava/lang/String;)Ljava/lang/String;", "")]
public static string? GetString (byte[]? data, int offset, int length, string? charset);
[<Android.Runtime.Register("getString", "([BIILjava/lang/String;)Ljava/lang/String;", "")>]
static member GetString : byte[] * int * int * string -> string
Parameters
- data
- Byte[]
the byte array to be encoded
- offset
- Int32
the index of the first byte to encode
- length
- Int32
the number of bytes to encode
- charset
- String
the desired character encoding
Returns
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.