Show / Hide Table of Contents

Struct EightCC

Represents an EightCC (eight-character code), which is a sequence of eight 8-bit characters packed into a 64-bit unsigned integer.

Implements
IEquatable<EightCC>
Inherited Members
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: FFmpeg.Utils
Assembly: FFmpeg.dll
Syntax
public readonly struct EightCC : IEquatable<EightCC>

Constructors

View Source

EightCC(ReadOnlySpan<char>)

Initializes a new instance of the EightCC struct from a read-only span of characters.

Declaration
public EightCC(ReadOnlySpan<char> code)
Parameters
Type Name Description
ReadOnlySpan<char> code

A span containing the eight-character code.

Exceptions
Type Condition
ArgumentException

Thrown if the length of code is not exactly 8 characters.

View Source

EightCC(ulong)

Initializes a new instance of the EightCC struct from a 64-bit unsigned integer.

Declaration
public EightCC(ulong value)
Parameters
Type Name Description
ulong value

The 64-bit unsigned integer representing the EightCC code.

Methods

View Source

Equals(EightCC)

Declaration
public bool Equals(EightCC other)
Parameters
Type Name Description
EightCC other
Returns
Type Description
bool
View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
ValueType.Equals(object)
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
ValueType.GetHashCode()
View Source

ToString()

Converts the EightCC code to its string representation (eight characters).

Declaration
public override string ToString()
Returns
Type Description
string

A string containing the eight-character code.

Overrides
ValueType.ToString()

Operators

View Source

operator ==(EightCC, EightCC)

Determines whether two EightCC values are equal.

Declaration
public static bool operator ==(EightCC left, EightCC right)
Parameters
Type Name Description
EightCC left

The first EightCC to compare.

EightCC right

The second EightCC to compare.

Returns
Type Description
bool

true if the two values are equal; otherwise, false.

View Source

implicit operator EightCC(AVResult64)

Implicitly converts an AVResult64 to a EightCC.

Declaration
public static implicit operator EightCC(AVResult64 value)
Parameters
Type Name Description
AVResult64 value

The AVResult64 representing the EightCC code.

Returns
Type Description
EightCC
View Source

implicit operator AVResult64(EightCC)

Implicitly converts a EightCC to an AVResult64.

Declaration
public static implicit operator AVResult64(EightCC value)
Parameters
Type Name Description
EightCC value

The EightCC representing the AVResult64 code.

Returns
Type Description
AVResult64
View Source

implicit operator ReadOnlySpan<char>(EightCC)

Implicitly converts an EightCC to its string representation.

Declaration
public static implicit operator ReadOnlySpan<char>(EightCC eightCC)
Parameters
Type Name Description
EightCC eightCC

The EightCC to convert.

Returns
Type Description
ReadOnlySpan<char>
View Source

implicit operator string(EightCC)

Implicitly converts an EightCC to its string representation.

Declaration
public static implicit operator string(EightCC eightCC)
Parameters
Type Name Description
EightCC eightCC

The EightCC to convert.

Returns
Type Description
string
View Source

implicit operator ulong(EightCC)

Implicitly converts an EightCC to its 64-bit unsigned integer representation.

Declaration
public static implicit operator ulong(EightCC eightCC)
Parameters
Type Name Description
EightCC eightCC

The EightCC to convert.

Returns
Type Description
ulong
View Source

implicit operator EightCC(ReadOnlySpan<char>)

Implicitly converts a read-only span of characters to an EightCC.

Declaration
public static implicit operator EightCC(ReadOnlySpan<char> value)
Parameters
Type Name Description
ReadOnlySpan<char> value

The read-only span containing the eight-character code.

Returns
Type Description
EightCC
Exceptions
Type Condition
ArgumentException

Thrown if the length of value is not exactly 8 characters.

View Source

implicit operator EightCC(string)

Implicitly converts a string to an EightCC.

Declaration
public static implicit operator EightCC(string value)
Parameters
Type Name Description
string value

The string containing the eight-character code.

Returns
Type Description
EightCC
Exceptions
Type Condition
ArgumentException

Thrown if the length of value is not exactly 8 characters.

View Source

implicit operator EightCC(ulong)

Implicitly converts a 64-bit unsigned integer to an EightCC.

Declaration
public static implicit operator EightCC(ulong value)
Parameters
Type Name Description
ulong value

The 64-bit unsigned integer representing the EightCC code.

Returns
Type Description
EightCC
View Source

operator !=(EightCC, EightCC)

Determines whether two EightCC values are not equal.

Declaration
public static bool operator !=(EightCC left, EightCC right)
Parameters
Type Name Description
EightCC left

The first EightCC to compare.

EightCC right

The second EightCC to compare.

Returns
Type Description
bool

true if the two values are not equal; otherwise, false.

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX