Skip to content
ChartForgeX
Class

HtmlBinaryAssetFile

ChartForgeX.Interactivity.Html

Namespace
ChartForgeX.Interactivity.Html
Assembly
ChartForgeX.Interactivity.Html
Modifiers
sealed

One shared binary asset, such as a font, served beside a page's runtime files. Like HtmlAssetFile, the file name carries a content hash, so a changed file never collides with a cached copy.

Inheritance

  • object
  • HtmlBinaryAssetFile

Usage

Explore 3 API references to this type

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

Methods

public byte[] GetBytes() #

Returns the bytes a host writes or serves for this file.

Returns

byte[] A new array on each call.

Properties

public string FileName { get; } #

Gets the content-addressed file name, for example archivo-pdf.1a2b3c4d5e6f.ttf.

public string ContentType { get; } #

Gets the MIME type to serve the file with, for example font/ttf.

public string Integrity { get; } #

Gets the Subresource Integrity value (sha384-…) of the bytes.

public int Length { get; } #

Gets the size of the file in bytes.