W3cubDocs

/Haxe C#

Encoding

package cs.system.text

implements ICloneable

@:abstract@:libType@:csNative@:native("System.Text.Encoding") Available on cs

Variables

read only BodyName:String

read only CodePage:Int

DecoderFallback:DecoderFallback

EncoderFallback:EncoderFallback

read only EncodingName:String

read only HeaderName:String

read only IsBrowserDisplay:Bool

read only IsBrowserSave:Bool

read only IsMailNewsDisplay:Bool

read only IsMailNewsSave:Bool

read only IsReadOnly:Bool

read only IsSingleByte:Bool

read only WebName:String

read only WindowsCodePage:Int

Methods

@:overload Clone ():Dynamic

@:overload GetByteCount (chars:NativeArray<Char16>, index:Int, count:Int):Int

@:overload GetByteCount (chars:Pointer<Char16>, count:Int):Int

@:overload GetByteCount (chars:NativeArray<Char16>):Int

@:overload GetByteCount (s:String):Int

@:overload GetBytes (chars:NativeArray<Char16>, charIndex:Int, charCount:Int, bytes:NativeArray<UInt8>, byteIndex:Int):Int

@:overload GetBytes (chars:Pointer<Char16>, charCount:Int, bytes:Pointer<UInt8>, byteCount:Int):Int

@:overload GetBytes (chars:NativeArray<Char16>):NativeArray<UInt8>

@:overload GetBytes (chars:NativeArray<Char16>, index:Int, count:Int):NativeArray<UInt8>

@:overload GetBytes (s:String):NativeArray<UInt8>

@:overload GetBytes (s:String, charIndex:Int, charCount:Int, bytes:NativeArray<UInt8>, byteIndex:Int):Int

@:overload GetCharCount (bytes:NativeArray<UInt8>, index:Int, count:Int):Int

@:overload GetCharCount (bytes:Pointer<UInt8>, count:Int):Int

@:overload GetCharCount (bytes:NativeArray<UInt8>):Int

@:overload GetChars (bytes:NativeArray<UInt8>, byteIndex:Int, byteCount:Int, chars:NativeArray<Char16>, charIndex:Int):Int

@:overload GetChars (bytes:Pointer<UInt8>, byteCount:Int, chars:Pointer<Char16>, charCount:Int):Int

@:overload GetChars (bytes:NativeArray<UInt8>):NativeArray<Char16>

@:overload GetChars (bytes:NativeArray<UInt8>, index:Int, count:Int):NativeArray<Char16>

@:overload GetDecoder ():Decoder

@:overload GetEncoder ():Encoder

@:overload GetMaxByteCount (charCount:Int):Int

@:overload GetMaxCharCount (byteCount:Int):Int

@:overload GetPreamble ():NativeArray<UInt8>

@:overload GetString (bytes:NativeArray<UInt8>, index:Int, count:Int):String

@:overload GetString (bytes:NativeArray<UInt8>):String

@:final @:overload IsAlwaysNormalized ():Bool

@:overload IsAlwaysNormalized (form:NormalizationForm):Bool

Static variables

static read only ASCII:Encoding

static read only BigEndianUnicode:Encoding

static read only Default:Encoding

static read only UTF32:Encoding

static read only UTF7:Encoding

static read only UTF8:Encoding

static read only Unicode:Encoding

Static methods

@:final @:overload static Convert (srcEncoding:Encoding, dstEncoding:Encoding, bytes:NativeArray<UInt8>):NativeArray<UInt8>

@:final @:overload static Convert (srcEncoding:Encoding, dstEncoding:Encoding, bytes:NativeArray<UInt8>, index:Int, count:Int):NativeArray<UInt8>

@:final @:overload static GetEncoding (codepage:Int):Encoding

@:final @:overload static GetEncoding (name:String):Encoding

@:final @:overload static GetEncoding (name:String, encoderFallback:EncoderFallback, decoderFallback:DecoderFallback):Encoding

@:final @:overload static GetEncoding (codepage:Int, encoderFallback:EncoderFallback, decoderFallback:DecoderFallback):Encoding

@:final @:overload static GetEncodings ():NativeArray<EncodingInfo>

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cs/system/text/Encoding.html