BASS.NET API for the Un4seen BASS Audio Library

UtilsStringToNullTermAnsi Method (String, IntPtr, Boolean)

BASS.NET API for the Un4seen BASS Audio Library
Copies the contents of a managed string array into unmanaged memory, converting each element into ANSI format as it copies and appends a null-terminator.

Namespace:  Un4seen.Bass
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

public static void StringToNullTermAnsi(
	string[] text,
	IntPtr target,
	bool addCRLF
)

Parameters

text
Type: SystemString
The managed string array to copy to target.
target
Type: SystemIntPtr
The address, in unmanaged memory, to where text should be copied.
addCRLF
Type: SystemBoolean
Add a carriage return and line feed ("\r\n") to each string element if missing?
Remarks

An additional final null-terminator is added as well, so that the last element will end with a double null-terminator. Note, that empty string array elements will be skipped.
See Also

Reference