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
Inherited Members
Namespace: FFmpeg.Utils
Assembly: FFmpeg.dll
Syntax
public readonly struct EightCC : IEquatable<EightCC>
Constructors
View SourceEightCC(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 |
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 SourceEquals(EightCC)
Declaration
public bool Equals(EightCC other)
Parameters
| Type | Name | Description |
|---|---|---|
| EightCC | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Overrides
View SourceToString()
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
Operators
View Sourceoperator ==(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 |
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 |
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 |
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> |
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 |
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 |
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 |
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 |
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 |
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 |