Virtual Method

FoundryAcpClientwrite_text_file

unstable since: 1.2

Declaration [src]

DexFuture*
write_text_file (
  FoundryAcpClient* self,
  FoundryAcpSession* session,
  const char* path,
  const char* content
)

Description [src]

Handles an ACP fs/write_text_file request.

Available since: 1.2

Parameters

session

Type: FoundryAcpSession

A FoundryAcpSession.

The data is owned by the caller of the method.
path

Type: const char*

An absolute path.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
content

Type: const char*

UTF-8 content.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: DexFuture

A DexFuture.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.