OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

AttachmentInfo

public sealed record AttachmentInfo : IEquatable<AttachmentInfo>

What one file carried inside a snapshot is, without reading its bytes.

AttachmentInfo: constructors

public AttachmentInfo(string Name, string Mime, long Size, string Sha256)

What one file carried inside a snapshot is, without reading its bytes.

  • Name: As the writer recorded it.
  • Mime: As the writer recorded it.
  • Size: The uncompressed byte count, which is how large a buffer the content needs.
  • Sha256: Lowercase hex SHA-256 of the uncompressed bytes. Already verified when the file was opened (a mismatch is what makes Snapshot.Open(…) fail), so it is here to be recorded rather than to be checked again.

AttachmentInfo: properties

public string Mime { get; init; }

As the writer recorded it.

public string Name { get; init; }

As the writer recorded it.

public string Sha256 { get; init; }

Lowercase hex SHA-256 of the uncompressed bytes. Already verified when the file was opened (a mismatch is what makes Snapshot.Open(…) fail), so it is here to be recorded rather than to be checked again.

public long Size { get; init; }

The uncompressed byte count, which is how large a buffer the content needs.