TypedBlob::CreateWithFixedBuffer

Creates a TypedBlob backed by fixed-size user-provided memory

Creates a TypedBlob buffer that is backed by fixed-size user memory.

Note:
this TypedBlob is still uninitialized and must be populated, e.g. by an Operation::ExportXYZ call.
Note:
the buffer must stay alive until TypedBlob::Release is called.

Signature

class Context:
    // Creates a TypedBlob backed by fixed-size user-provided memory
    fun createTypedBlobWithFixedBuffer(
        buffer: mut [byte],
    ) -> TypedBlob