Encoding

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.encoding.base64

Instance Methods


constructor

 

constructor

 

Encoding()

 

init()

constructor (array of Byte, array of Byte, rune, Boolean) .NET, .NET Standard 2.0

 

constructor(aencode: array of Byte; adecodeMap: array of Byte; apadChar: rune; astrict: Boolean)

 

Encoding(Byte[] aencode, Byte[] adecodeMap, rune apadChar, Boolean astrict)

 

init(_ aencode: Byte..., _ adecodeMap: Byte..., _ apadChar: rune, _ astrict: Boolean)

Parameters:

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

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

 

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)

Parameters:

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

constructor (Encoding)

 

constructor(value: Encoding)

 

Encoding(Encoding value)

 

init(_ value: Encoding)

Parameters:

  • value:

Strict

 

method Strict: Reference<Encoding>

 

Reference<Encoding> Strict()

 

func Strict() -> Reference<Encoding>

 

func Strict() 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>

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>) -> (n:Int64, err:error)

 

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

Parameters:

  • dst:
  • src:

DecodedLen

 

method DecodedLen(n: int): int

 

int DecodedLen(int n)

 

func DecodedLen(_ n: int) -> int

 

func DecodedLen(n int) int

Parameters:

  • n:

DecodeString

 

// .NET, Island
method DecodeString(s: string): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method DecodeString(s: string): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
(Slice<Byte>, error) DecodeString(string s)
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> DecodeString(string s)

 

// .NET, Island
func DecodeString(_ s: string) -> (Slice<Byte>, error)
// .NET Standard 2.0
func DecodeString(_ s: string) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func DecodeString(s string) (Slice<Byte>, error)
// .NET Standard 2.0
func DecodeString(s string) ValueTuple<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>)

Parameters:

  • dst:
  • src:

EncodedLen

 

method EncodedLen(n: int): int

 

int EncodedLen(int n)

 

func EncodedLen(_ n: int) -> int

 

func EncodedLen(n int) 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

Parameters:

  • src: