template <>

class WireServer

Defined at line 1812 of file fidling/gen/sdk/fidl/fuchsia.hardware.ramdisk/fuchsia.hardware.ramdisk/cpp/fidl/fuchsia.hardware.ramdisk/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_hardware_ramdisk::RamdiskController>|

and |::fidl::ServerEnd

<

::fuchsia_hardware_ramdisk::RamdiskController>|).

Public Methods

void Create (::fuchsia_hardware_ramdisk::wire::RamdiskControllerCreateRequest * request, CreateCompleter::Sync & completer)

Initializes a new Ramdisk instance with the provided block size and block count.

Takes an optional `type_guid`, which may be queried from the ramdisk instance.

void CreateFromVmo (::fuchsia_hardware_ramdisk::wire::RamdiskControllerCreateFromVmoRequest * request, CreateFromVmoCompleter::Sync & completer)

Initializes a new Ramdisk instance from a VMO. Uses a block size of `PAGE_SIZE`,

and derives the block count from the size of the VMO.

void CreateFromVmoWithParams (::fuchsia_hardware_ramdisk::wire::RamdiskControllerCreateFromVmoWithParamsRequest * request, CreateFromVmoWithParamsCompleter::Sync & completer)

Same as CreateFromVmo, but with the given `block_size` and optional `type_guid`. If

`block_size` is zero, `PAGE_SIZE` will be used as `block_size`.

void WireServer ()

Defined at line 1815 of file fidling/gen/sdk/fidl/fuchsia.hardware.ramdisk/fuchsia.hardware.ramdisk/cpp/fidl/fuchsia.hardware.ramdisk/cpp/wire_messaging.h

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~WireServer ()

Defined at line 1816 of file fidling/gen/sdk/fidl/fuchsia.hardware.ramdisk/fuchsia.hardware.ramdisk/cpp/fidl/fuchsia.hardware.ramdisk/cpp/wire_messaging.h