Click or drag to resize
Utility Class
Contains convenience functions for bit-wise operations and data structure manipulation.
Inheritance Hierarchy
SystemObject
  StreamCoders.Container.MP4Utility

Namespace: StreamCoders.Container.MP4
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public class Utility

The Utility type exposes the following members.

Constructors
  NameDescription
Public methodUtility
Initializes a new instance of the Utility class
Top
Methods
  NameDescription
Public methodStatic memberConverTimeSpanToUnsignedInt64
Converts a TimeSpan to ulong given a scale.
Public methodStatic memberConvertUnsignedInt32ToTimeSpan
Converts Ticks/Frequency to Timespan
Public methodStatic memberConvertUnsignedInt64ToTimeSpan
Converts Ticks/Frequency to Timespan.
Public methodStatic memberCreateBox
Creates an MP4 Box instance.
Public methodStatic memberCreateBoxInstanceT
Creates an MP4 Box instance.
Public methodStatic memberCreateCharFromTypeValue
Creates char array from a 4-byte type value.
Public methodStatic memberCreateDescriptor
Creates an MPEG descriptor.
Public methodStatic memberCreateStringFromTypeValue
Creates string from a 32-bit value. This can be used to convert FourCC read as ints to be converted to a string.
Public methodStatic memberCreateType
Creates a 4-byte int from 4 char values.
Public methodStatic memberGetUTF8Length
Gets the number of bytes in a UTF-8 string.
Public methodStatic memberIsBitSet(Byte, Int32)
Checks whether a certain bit is set.
Public methodStatic memberIsBitSet(UInt32, Int32)
Checks whether a certain bit is set.
Public methodStatic memberIsMaskPresent
Checks if a value contains a certain bit-mask.
Public methodStatic memberSecondsSince1904
Returns the seconds that have passed since 1/1/1904 0:00
Public methodStatic memberSetBit(Byte, Int32, Boolean)
Sets a bit in a 8-bit variable.
Public methodStatic memberSetBit(UInt32, Int32, Boolean)
Sets a bit in a 32-bit variable.
Public methodStatic memberTimeSince1904
Adds a number of seconds to 1/1/1904 00:00 reference date.
Public methodStatic memberToByte
Converts a char to byte.
Top
Extension Methods
  NameDescription
Public Extension MethodCopyOverloaded.
Creates a copy of the object.
(Defined by ObjectExtensions.)
Public Extension MethodCopy(Object)Overloaded.
Creates a deep copy of the object using the supplied object as a target for the copy operation.
(Defined by ObjectExtensions.)
Top
See Also