Interface IIO
Input/Output operations for streams produced by DevTools.
public interface IIO
Methods
CloseAsync(StreamHandle, string?, CancellationToken)
Close the stream, discard any temporary backing storage.
Task<CloseResult> CloseAsync(StreamHandle handle, string? session = null, CancellationToken cancellationToken = default)
Parameters
handleStreamHandleHandle of the stream to close.
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<CloseResult>
A task representing the asynchronous operation, containing a CloseResult.
ReadAsync(StreamHandle, long?, long?, string?, CancellationToken)
Read a chunk of the stream
Task<ReadResult> ReadAsync(StreamHandle handle, long? offset = null, long? size = null, string? session = null, CancellationToken cancellationToken = default)
Parameters
handleStreamHandleHandle of the stream to read.
offsetlong?Seek to the specified offset before reading (if not specified, proceed with offset following the last read). Some types of streams may only support sequential reads.
sizelong?Maximum number of bytes to read (left upon the agent discretion if not specified).
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<ReadResult>
A task representing the asynchronous operation, containing a ReadResult.
ResolveBlobAsync(RemoteObjectId, string?, CancellationToken)
Return UUID of Blob object specified by a remote object id.
Task<ResolveBlobResult> ResolveBlobAsync(RemoteObjectId objectId, string? session = null, CancellationToken cancellationToken = default)
Parameters
objectIdRemoteObjectIdObject id of a Blob object wrapper.
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<ResolveBlobResult>
A task representing the asynchronous operation, containing a ResolveBlobResult.