DittoAttachment

Represents an attachment and can be used to insert the associated attachment into a document at a specific key.

Properties

Link copied to clipboard
val id: String

The attachment's ID.

Link copied to clipboard
val len: ULong

Length (size) of the attachment

Link copied to clipboard

The attachment's metadata.

Functions

Link copied to clipboard
open override fun close()

Releases the underlying resource. Safe to call multiple times.

Link copied to clipboard
fun copyToPath(path: String)

Copies the attachment to the specified file path.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Returns the attachment's data as a ByteArray.

Link copied to clipboard
fun getInputStream(): FileInputStream

Returns an input stream for the attachment file.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
@JvmName(name = "dittoAttachment_toDittoCbor")
fun DittoAttachment.toDittoCbor(): DittoCborSerializable
Link copied to clipboard
open override fun toString(): String