FragmentationUnitHeader

public struct FragmentationUnitHeader : Hashable
extension H264.FragmentationUnitHeader: Writable

Undocumented

  • isStart indicates the start of a fragmented NAL unit. When the following FU payload is not the start of a fragmented NAL unit payload, isStart is set to false.

    Declaration

    Swift

    public var isStart: Bool
  • When set to ture, isEnd indicates the end of a fragmented NAL unit, i.e., the last byte of the payload is also the last byte of the fragmented NAL unit. When the following FU payload is not the last fragment of a fragmented NAL unit, isEnd is set to false.

    Declaration

    Swift

    public var isEnd: Bool
  • The Reserved bit MUST be equal to 0 and MUST be ignored by the receiver.

    Declaration

    Swift

    public var reservedBit: Bool
  • Undocumented

    Declaration

    Swift

    public var type: H264.NALUnitType
  • Undocumented

    Declaration

    Swift

    @inlinable
    public init(isStart: Bool, isEnd: Bool, reservedBit: Bool = false, type: H264.NALUnitType)
  • Undocumented

    Declaration

    Swift

    @inlinable
    public init<D>(from reader: inout BinaryReader<D>) throws where D : DataProtocol, D.Index == Int
  • Undocumented

    Declaration

    Swift

    @inlinable
    public func write<D>(to writer: inout BinaryWriter<D>) throws where D : MutableDataProtocol, D.Index == Int
  • Undocumented

    Declaration

    Swift

    @inlinable
    public var byte: UInt8 { get }
  • size in bytes if written to the network

    Declaration

    Swift

    @inlinable
    public var size: Int { get }