API Reference

Class

HtmlDataUri

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Modifiers sealed

Media-neutral data URI with bounded-size inspection and byte decoding.

Inheritance

  • Object
  • HtmlDataUri

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Methods

public Byte[] DecodeBytes() #
Returns: Byte[]

Decodes the payload as bytes.

public String DecodeText() #
Returns: String

Decodes the payload using its declared charset, or UTF-8 when no charset is declared.

public Int64 EstimateDecodedByteCount() #
Returns: Int64

Calculates decoded byte count without allocating the decoded payload.

public Boolean TryDecodeBytes(out Byte[] bytes) #
Returns: Boolean

Attempts to decode the payload as bytes.

Parameters

bytes System.Byte[]@ requiredposition: 0
public Boolean TryDecodeText(out String text) #
Returns: Boolean

Attempts to decode the payload using its declared charset, or UTF-8 when none is declared.

Parameters

text System.String@ requiredposition: 0
public Boolean TryEstimateDecodedByteCount(out Int64 byteCount) #
Returns: Boolean

Attempts to calculate decoded byte count without allocating the decoded payload.

Parameters

byteCount System.Int64@ requiredposition: 0
public static Boolean TryParse(String source, out HtmlDataUri dataUri) #
Returns: Boolean

Tries to parse a data URI with an explicit media type.

Parameters

source System.String requiredposition: 0
dataUri OfficeIMO.Html.HtmlDataUri@ requiredposition: 1

Properties

public String Metadata { get; } #

Metadata without the leading data: prefix.

public String MediaType { get; } #

Declared media type.

public String Data { get; } #

Raw payload after the comma separator.

public Boolean IsBase64 { get; } #

Whether the payload uses base64 encoding.