Encoding

Overview

Location

Instance Methods


constructor

 

constructor

 

Encoding()

 

init()

 

Sub New()

constructor (array of byte, array of byte, rune, bool)

 

constructor(aencode: array of byte; adecodeMap: array of byte; apadChar: rune; astrict: bool)

 

Encoding(byte[] aencode, byte[] adecodeMap, rune apadChar, bool astrict)

 

init(_ aencode: byte..., _ adecodeMap: byte..., _ apadChar: rune, _ astrict: bool)

 

Sub New(aencode As byte(), adecodeMap As byte(), apadChar As rune, astrict As bool)

Parameters:

  • aencode:
  • adecodeMap:
  • apadChar:
  • astrict:

constructor (Encoding)

 

constructor(value: Encoding)

 

Encoding(Encoding value)

 

init(_ value: Encoding)

 

Sub New(value As Encoding)

Parameters:

  • value:

Strict

 

method Strict: Reference<Encoding>

 

Reference<Encoding> Strict()

 

func Strict() -> Reference<Encoding>

 

func Strict() Reference<Encoding>

 

Function Strict() As Reference<Encoding>

WithPadding

 

method WithPadding(padding: rune): Reference<Encoding>

 

Reference<Encoding> WithPadding(rune padding)

 

func WithPadding(_ padding: rune) -> Reference<Encoding>

 

func WithPadding(padding rune) Reference<Encoding>

 

Function WithPadding(padding As rune) As Reference<Encoding>

Parameters:

  • padding:

Decode

 

method Decode(dst: Slice<Byte>; src: Slice<Byte>): tuple of (n: Int64, err: error)

 

(Int64 n, error err) Decode(Slice<Byte> dst, Slice<Byte> src)

 

func Decode(_ dst: Slice<Byte>, _ src: Slice<Byte>) -> (Int64, error)

 

func Decode(dst Slice<Byte>, src Slice<Byte>) (n Int64, err error)

 

Function Decode(dst As Slice<Byte>, src As Slice<Byte>) As Tuple (Of Int64, error)

Parameters:

  • dst:
  • src:

DecodedLen

 

method DecodedLen(n: int): int

 

int DecodedLen(int n)

 

func DecodedLen(_ n: int) -> int

 

func DecodedLen(n int) int

 

Function DecodedLen(n As int) As int

Parameters:

  • n:

DecodeString

 

method DecodeString(s: string): tuple of (Slice<Byte>, error)

 

(Slice<Byte>, error) DecodeString(string s)

 

func DecodeString(_ s: string) -> (Slice<Byte>, error)

 

func DecodeString(s string) (Slice<Byte>, error)

 

Function DecodeString(s As string) As Tuple (Of Slice<Byte>, error)

Parameters:

  • s:

Encode

 

method Encode(dst: Slice<Byte>; src: Slice<Byte>)

 

void Encode(Slice<Byte> dst, Slice<Byte> src)

 

func Encode(_ dst: Slice<Byte>, _ src: Slice<Byte>)

 

func Encode(dst Slice<Byte>, src Slice<Byte>)

 

Sub Encode(dst As Slice<Byte>, src As Slice<Byte>)

Parameters:

  • dst:
  • src:

EncodedLen

 

method EncodedLen(n: int): int

 

int EncodedLen(int n)

 

func EncodedLen(_ n: int) -> int

 

func EncodedLen(n int) int

 

Function EncodedLen(n As int) As int

Parameters:

  • n:

EncodeToString

 

method EncodeToString(src: Slice<Byte>): string

 

string EncodeToString(Slice<Byte> src)

 

func EncodeToString(_ src: Slice<Byte>) -> string

 

func EncodeToString(src Slice<Byte>) string

 

Function EncodeToString(src As Slice<Byte>) As string

Parameters:

  • src: