Sometime BASS returns an IntPtr which actually represents a pointer to a memory block containing a null-terminated Latin-1 (ISO-8859-1) *char (string, 8-bit). This method does this translation for you and returns the actual string.
Assembly: Bass.Net (in Bass.Net.dll) Version: 18.104.22.168
public static string IntPtrAsStringLatin1( IntPtr latin1Ptr, out int len )
Public Shared Function IntPtrAsStringLatin1 ( latin1Ptr As IntPtr, <OutAttribute> ByRef len As Integer ) As String
- Type: SystemIntPtr
The IntPtr which represents the address of the first character of the unmanaged *char (string, Latin-1, 8-bit).
- Type: SystemInt32
Returns the number of bytes read (the length of the decoded string).
Return ValueType: String
The translated unicode string.