Class Utility
Assembly: cs.temp.dll.dll
Declaration
Fields
MIN_DBFS
Declaration
Methods
GetNativeBuffer(IntPtr, uint)
Get Odin native buffer IntPtr data
Declaration
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
Odin.IntPtr | pointer |
System.UInt32 | length |
Test(bool, string)
Declaration
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Boolean | condition |
System.String | message |
IsOk(OdinError)
Checks the return code for errors
Declaration
Returns
System.Boolean
: false on error
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Core.Imports.NativeBindings.OdinError | error | Odin error return code |
IsOk(OdinCryptoPeerStatus)
Checks the return code for crypto status
Declaration
Returns
System.Boolean
: false on error
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Core.Imports.NativeBindings.OdinCryptoPeerStatus | status | Odin crypto return status |
OdinErrorToString(OdinError)
Retrieves the name of the constant in the specified OdinNative.Core.Imports.NativeBindings.OdinError?text=error
Declaration
Returns
System.String
: string representation of OdinNative.Core.Imports.NativeBindings.OdinError?text=OdinError
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Core.Imports.NativeBindings.OdinError | error | Odin error return code |
OdinLastErrorString()
Retrieves last native error message
Declaration
Returns
System.String
: error message### RateToSamples(uint, int)
Get sample size by samplerate and time
Declaration
Returns
System.Int32
: sample size
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | sampleRate | samplerate in hz |
System.Int32 | ms | time in milliseconds |