CDPotion.Domain.IO (cdpotion v0.1.1)

Summary

Types

This is either obtained from another method or specified as blob:<uuid> where <uuid> is an UUID of a Blob.

Functions

Close the stream, discard any temporary backing storage.

Read a chunk of the stream

Return UUID of Blob object specified by a remote object id.

Types

Link to this type

stream_handle()

@type stream_handle() :: String.t()

This is either obtained from another method or specified as blob:<uuid> where <uuid> is an UUID of a Blob.

Functions

Close the stream, discard any temporary backing storage.

Parameters:

  • handle:StreamHandle: Handle of the stream to close.
Link to this function

read(handle, offset \\ nil, size \\ nil)

Read a chunk of the stream

Parameters:

  • handle:StreamHandle: Handle of the stream to read.
  • offset:integer: (Optional) Seek to the specified offset before reading (if not specificed, proceed with offset following the last read). Some types of streams may only support sequential reads.
  • size:integer: (Optional) Maximum number of bytes to read (left upon the agent discretion if not specified).
Link to this function

resolve_blob(object_id)

Return UUID of Blob object specified by a remote object id.

Parameters:

  • objectId:Runtime.RemoteObjectId: Object id of a Blob object wrapper.