Writer

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island, macOS
  • Namespace: go.archive.zip

Instance Methods


constructor

 

constructor

 

Writer()

 

init()

constructor (Writer)

 

constructor(value: Writer)

 

Writer(Writer value)

 

init(_ value: Writer)

Parameters:

  • value:

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

Create

 

// .NET, Island, macOS
method Create(name: string): tuple of (Writer, error)
// .NET Standard 2.0
method Create(name: string): ValueTuple<Writer, error>

 

// .NET, Island, macOS
(Writer, error) Create(string name)
// .NET Standard 2.0
ValueTuple<Writer, error> Create(string name)

 

// .NET, Island, macOS
func Create(_ name: string) -> (Writer, error)
// .NET Standard 2.0
func Create(_ name: string) -> ValueTuple<Writer, error>

 

// .NET, Island, macOS
func Create(name string) (Writer, error)
// .NET Standard 2.0
func Create(name string) ValueTuple<Writer, error>

Parameters:

  • name:

CreateHeader

 

// .NET, Island, macOS
method CreateHeader(fh: Reference<FileHeader>): tuple of (Writer, error)
// .NET Standard 2.0
method CreateHeader(fh: Reference<FileHeader>): ValueTuple<Writer, error>

 

// .NET, Island, macOS
(Writer, error) CreateHeader(Reference<FileHeader> fh)
// .NET Standard 2.0
ValueTuple<Writer, error> CreateHeader(Reference<FileHeader> fh)

 

// .NET, Island, macOS
func CreateHeader(_ fh: Reference<FileHeader>) -> (Writer, error)
// .NET Standard 2.0
func CreateHeader(_ fh: Reference<FileHeader>) -> ValueTuple<Writer, error>

 

// .NET, Island, macOS
func CreateHeader(fh Reference<FileHeader>) (Writer, error)
// .NET Standard 2.0
func CreateHeader(fh Reference<FileHeader>) ValueTuple<Writer, error>

Parameters:

  • fh:

Flush

 

method Flush: error

 

error Flush()

 

func Flush() -> error

 

func Flush() error

RegisterCompressor

 

method RegisterCompressor(method: uint16; comp: Compressor)

 

void RegisterCompressor(uint16 method, Compressor comp)

 

func RegisterCompressor(_ method: uint16, _ comp: Compressor)

 

func RegisterCompressor(method uint16, comp Compressor)

Parameters:

  • method:
  • comp:

SetComment

 

method SetComment(comment: string): error

 

error SetComment(string comment)

 

func SetComment(_ comment: string) -> error

 

func SetComment(comment string) error

Parameters:

  • comment:

SetOffset

 

method SetOffset(n: int64)

 

void SetOffset(int64 n)

 

func SetOffset(_ n: int64)

 

func SetOffset(n int64)

Parameters:

  • n: