Buffer

Overview

Location

  • Reference: Go.fx
  • Namespace: go.bytes
  • Platforms: Island


Instance Methods


constructor

 

constructor

 

Buffer()

 

init()

 

Sub New()

constructor (Buffer)

 

constructor(value: Buffer)

 

Buffer(Buffer value)

 

init(_ value: Buffer)

 

Sub New(value As Buffer)

Parameters:

  • value:

Read (Slice<Byte>): tuple of (n: Int64, err: error)

 

method Read(p: Slice<Byte>): tuple of (n: Int64, err: error)

 

(Int64 n, error err) Read(Slice<Byte> p)

 

func Read(_ p: Slice<Byte>) -> (Int64, error)

 

func Read(p Slice<Byte>) tuple of (|name=n| Int64, |name=err| error)

 

Function Read(p As Slice<Byte>) As Tuple (Of Int64, error)

Parameters:

  • p:

Write (Slice<Byte>): tuple of (n: Int64, err: error)

 

method Write(p: Slice<Byte>): tuple of (n: Int64, err: error)

 

(Int64 n, error err) Write(Slice<Byte> p)

 

func Write(_ p: Slice<Byte>) -> (Int64, error)

 

func Write(p Slice<Byte>) tuple of (|name=n| Int64, |name=err| error)

 

Function Write(p As Slice<Byte>) As Tuple (Of Int64, error)

Parameters:

  • p:

WriteByte (byte): error

 

method WriteByte(c: byte): error

 

error WriteByte(byte c)

 

func WriteByte(_ c: byte) -> error

 

func WriteByte(c byte) error

 

Function WriteByte(c As byte) As error

Parameters:

  • c:

WriteString (string): tuple of (n: Int64, err: error)

 

method WriteString(s: string): tuple of (n: Int64, err: error)

 

(Int64 n, error err) WriteString(string s)

 

func WriteString(_ s: string) -> (Int64, error)

 

func WriteString(s string) tuple of (|name=n| Int64, |name=err| error)

 

Function WriteString(s As string) As Tuple (Of Int64, error)

Parameters:

  • s:

Bytes

 

method Bytes: Slice<Byte>

 

Slice<Byte> Bytes()

 

func Bytes() -> Slice<Byte>

 

func Bytes() Slice<Byte>

 

Function Bytes() As Slice<Byte>

Cap

 

method Cap: int

 

int Cap()

 

func Cap() -> int

 

func Cap() int

 

Function Cap() As int

Grow

 

method Grow(n: int)

 

void Grow(int n)

 

func Grow(_ n: int)

 

func Grow(n int) void

 

Sub Grow(n As int)

Parameters:

  • n:

Len

 

method Len: int

 

int Len()

 

func Len() -> int

 

func Len() int

 

Function Len() As int

Next

 

method Next(n: int): Slice<Byte>

 

Slice<Byte> Next(int n)

 

func Next(_ n: int) -> Slice<Byte>

 

func Next(n int) Slice<Byte>

 

Function Next(n As int) As Slice<Byte>

Parameters:

  • n:

Read (Slice<Byte>): tuple of (n: Int64, err: error)

 

method Read(p: Slice<Byte>): tuple of (n: Int64, err: error)

 

(Int64 n, error err) Read(Slice<Byte> p)

 

func Read(_ p: Slice<Byte>) -> (Int64, error)

 

func Read(p Slice<Byte>) tuple of (|name=n| Int64, |name=err| error)

 

Function Read(p As Slice<Byte>) As Tuple (Of Int64, error)

Parameters:

  • p:

ReadByte

 

method ReadByte: tuple of (Byte, error)

 

(Byte, error) ReadByte()

 

func ReadByte() -> (Byte, error)

 

func ReadByte() tuple of (Byte, error)

 

Function ReadByte() As Tuple (Of Byte, error)

ReadBytes

 

method ReadBytes(delim: byte): tuple of (line: Slice<Byte>, err: error)

 

(Slice<Byte>line, error err) ReadBytes(byte delim)

 

func ReadBytes(_ delim: byte) -> (Slice<Byte>, error)

 

func ReadBytes(delim byte) tuple of (|name=line| Slice<Byte>, |name=err| error)

 

Function ReadBytes(delim As byte) As Tuple (Of Slice<Byte>, error)

Parameters:

  • delim:

ReadFrom

 

method ReadFrom(r: Reader): tuple of (n: int64, err: error)

 

(int64 n, error err) ReadFrom(Reader r)

 

func ReadFrom(_ r: Reader) -> (int64, error)

 

func ReadFrom(r Reader) tuple of (|name=n| int64, |name=err| error)

 

Function ReadFrom(r As Reader) As Tuple (Of int64, error)

Parameters:

  • r:

ReadRune

 

method ReadRune: tuple of (r: rune, size: Int64, err: error)

 

(rune r, Int64 size, error err) ReadRune()

 

func ReadRune() -> (rune, Int64, error)

 

func ReadRune() tuple of (|name=r| rune, |name=size| Int64, |name=err| error)

 

Function ReadRune() As Tuple (Of rune, Int64, error)

ReadString

 

method ReadString(delim: byte): tuple of (line: string, err: error)

 

(string line, error err) ReadString(byte delim)

 

func ReadString(_ delim: byte) -> (string, error)

 

func ReadString(delim byte) tuple of (|name=line| string, |name=err| error)

 

Function ReadString(delim As byte) As Tuple (Of string, error)

Parameters:

  • delim:

Reset

 

method Reset

 

void Reset()

 

func Reset()

 

func Reset() void

 

Sub Reset()

String

 

method String: string

 

string String()

 

func String() -> string

 

func String() string

 

Function String() As string

Truncate

 

method Truncate(n: int)

 

void Truncate(int n)

 

func Truncate(_ n: int)

 

func Truncate(n int) void

 

Sub Truncate(n As int)

Parameters:

  • n:

UnreadByte

 

method UnreadByte: error

 

error UnreadByte()

 

func UnreadByte() -> error

 

func UnreadByte() error

 

Function UnreadByte() As error

UnreadRune

 

method UnreadRune: error

 

error UnreadRune()

 

func UnreadRune() -> error

 

func UnreadRune() error

 

Function UnreadRune() As error

Write (Slice<Byte>): tuple of (n: Int64, err: error)

 

method Write(p: Slice<Byte>): tuple of (n: Int64, err: error)

 

(Int64 n, error err) Write(Slice<Byte> p)

 

func Write(_ p: Slice<Byte>) -> (Int64, error)

 

func Write(p Slice<Byte>) tuple of (|name=n| Int64, |name=err| error)

 

Function Write(p As Slice<Byte>) As Tuple (Of Int64, error)

Parameters:

  • p:

WriteByte (byte): error

 

method WriteByte(c: byte): error

 

error WriteByte(byte c)

 

func WriteByte(_ c: byte) -> error

 

func WriteByte(c byte) error

 

Function WriteByte(c As byte) As error

Parameters:

  • c:

WriteRune

 

method WriteRune(r: rune): tuple of (n: Int64, err: error)

 

(Int64 n, error err) WriteRune(rune r)

 

func WriteRune(_ r: rune) -> (Int64, error)

 

func WriteRune(r rune) tuple of (|name=n| Int64, |name=err| error)

 

Function WriteRune(r As rune) As Tuple (Of Int64, error)

Parameters:

  • r:

WriteString (string): tuple of (n: Int64, err: error)

 

method WriteString(s: string): tuple of (n: Int64, err: error)

 

(Int64 n, error err) WriteString(string s)

 

func WriteString(_ s: string) -> (Int64, error)

 

func WriteString(s string) tuple of (|name=n| Int64, |name=err| error)

 

Function WriteString(s As string) As Tuple (Of Int64, error)

Parameters:

  • s:

WriteTo

 

method WriteTo(w: Writer): tuple of (n: int64, err: error)

 

(int64 n, error err) WriteTo(Writer w)

 

func WriteTo(_ w: Writer) -> (int64, error)

 

func WriteTo(w Writer) tuple of (|name=n| int64, |name=err| error)

 

Function WriteTo(w As Writer) As Tuple (Of int64, error)

Parameters:

  • w:

 

Implements