Spec-Zone.ru › Pony

FileStream

[Source]

Asynchronous access to a File object. Wraps file operations print, write, printv and writev. The File will be disposed through File._final.

actor tag FileStream is
  OutStream tag

Implements

  • OutStream tag

Constructors

create

[Source]

new tag create(
  file: File iso)
: FileStream tag^

Parameters

  • file: File iso

Returns

  • FileStream tag^

Public Behaviours

print

[Source]

Print some bytes and insert a newline afterwards.

be print(
  data: (String val | Array[U8 val] val))

Parameters

  • data: (String val | Array[U8 val] val)

write

[Source]

Print some bytes without inserting a newline afterwards.

be write(
  data: (String val | Array[U8 val] val))

Parameters

  • data: (String val | Array[U8 val] val)

printv

[Source]

Print an iterable collection of ByteSeqs.

be printv(
  data: ByteSeqIter val)

Parameters

  • data: ByteSeqIter val

writev

[Source]

Write an iterable collection of ByteSeqs.

be writev(
  data: ByteSeqIter val)

Parameters

  • data: ByteSeqIter val

flush

[Source]

Flush pending data to write.

be flush()

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/files-FileStream

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API