Instance Method (Default implementation)swift-nio 2.72.0_NIOFileSystem

    write(contentsOf:toAbsoluteOffset:)

    Write the readable bytes of the ByteBuffer to the open file.

    FileHandleProtocol.swift:504
    iOS
    13.0+
    macOS
    10.15+
    tvOS
    13.0+
    watchOS
    6.0+
    @discardableResult func write(contentsOf buffer: ByteBuffer, toAbsoluteOffset offset: Int64) async throws -> Int64

    Parameters

    buffer

    The bytes to write.

    offset

    The absolute offset into the file to write the bytes.

    Returns

    The number of bytes written.

    Throws

    unsupported if file is unseekable and offset is not 0.

    See also

    Other members in extension

    Instance members