EncodingHelpers

Overview

Location

  • Reference: Sugar
  • Namespace: Sugar

Class Methods


GetBytes (Encoding, array of Char, Int32, Int32): array of Byte

 

class method GetBytes(aEncoding: Encoding; Value: array of Char; Offset: Int32; Count: Int32): array of Byte

 

static Byte[] GetBytes(Encoding aEncoding, Char[] Value, Int32 Offset, Int32 Count)

 

static func GetBytes(_ aEncoding: Encoding, _ Value: Char..., _ Offset: Int32, _ Count: Int32) -> Byte...

 

static Byte[] GetBytes(Encoding aEncoding, Char[] Value, Int32 Offset, Int32 Count)

 

Shared Function GetBytes(aEncoding As Encoding, Value As Char(), Offset As Int32, Count As Int32) As Byte()

Parameters:

  • aEncoding:
  • Value:
  • Offset:
  • Count:

GetBytes (Encoding, String): array of Byte

 

class method GetBytes(aEncoding: Encoding; Value: String): array of Byte

 

static Byte[] GetBytes(Encoding aEncoding, String Value)

 

static func GetBytes(_ aEncoding: Encoding, _ Value: String) -> Byte...

 

static Byte[] GetBytes(Encoding aEncoding, String Value)

 

Shared Function GetBytes(aEncoding As Encoding, Value As String) As Byte()

Parameters:

  • aEncoding:
  • Value:

GetChars

 

class method GetChars(aEncoding: Encoding; Value: array of Byte; Offset: Int32; Count: Int32): array of Char

 

static Char[] GetChars(Encoding aEncoding, Byte[] Value, Int32 Offset, Int32 Count)

 

static func GetChars(_ aEncoding: Encoding, _ Value: Byte..., _ Offset: Int32, _ Count: Int32) -> Char...

 

static Char[] GetChars(Encoding aEncoding, Byte[] Value, Int32 Offset, Int32 Count)

 

Shared Function GetChars(aEncoding As Encoding, Value As Byte(), Offset As Int32, Count As Int32) As Char()

Parameters:

  • aEncoding:
  • Value:
  • Offset:
  • Count:

GetEncoding

 

class method GetEncoding(aName: String): Encoding

 

static Encoding GetEncoding(String aName)

 

static func GetEncoding(_ aName: String) -> Encoding

 

static Encoding GetEncoding(String aName)

 

Shared Function GetEncoding(aName As String) As Encoding

Parameters:

  • aName:

GetString

 

class method GetString(aEncoding: Encoding; Value: array of Byte; Offset: Int32; Count: Int32): String

 

static String GetString(Encoding aEncoding, Byte[] Value, Int32 Offset, Int32 Count)

 

static func GetString(_ aEncoding: Encoding, _ Value: Byte..., _ Offset: Int32, _ Count: Int32) -> String

 

static String GetString(Encoding aEncoding, Byte[] Value, Int32 Offset, Int32 Count)

 

Shared Function GetString(aEncoding As Encoding, Value As Byte(), Offset As Int32, Count As Int32) As String

Parameters:

  • aEncoding:
  • Value:
  • Offset:
  • Count: