FileOutputStream

Constructors

Link copied to clipboard
constructor(pathName: String, mode: FileMode = Mode.TRUNCATED)
constructor(fileHandle: Int, mode: FileMode = Mode.TRUNCATED)
constructor(filePtr: FilePtr)

Types

Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun flush()

Write buffers to the underlying file (where valid).

Link copied to clipboard
open override fun write(b: Int)
open override fun write(b: ByteArray, off: Int, len: Int)
fun write(buffer: UByteArray, begin: Int = 0, end: Int = buffer.size - begin)
actual open fun write(b: ByteArray)
Link copied to clipboard
open override fun <T> writeAllPtr(buffer: <Error class: unknown class><T>, size: SizeT, count: SizeT)
inline fun <T> writeAllPtr(buffer: <Error class: unknown class><T>, count: Int)
Link copied to clipboard
open override fun <T> writePtr(buffer: <Error class: unknown class><T>, size: SizeT, count: SizeT): SizeT

Write the buffer to the underlying stream. Effectively wrapping fwrite.

inline fun <T> writePtr(buffer: <Error class: unknown class><T>, count: SizeT): SizeT

Write the buffer with the given amount of elements. It gets the element size from the type parameter.