ADL.StringHelper.toNative C# (CSharp) Method

toNative() static private method

static private toNative ( string s ) : ADLString
s string
return ADLString
        internal static ADLString toNative(string s)
        {
            ADLString result = new ADLString();
            if (s != null)
            {
                result.body = s;
                result.length = (uint)s.Length;
            }
            return result;
        }

Usage Example

Example #1
0
        internal static ADLRenderRequest toNative(RenderOptions options)
        {
            ADLRenderRequest result = new ADLRenderRequest();

            result.sinkId = StringHelper.toNative(options.sinkId);
            result.mirror = options.mirror;
            result.filter = StringHelper.toNative(options.filter.StringValue);
            result.opaque = IntPtr.Zero;
            return(result);
        }
All Usage Examples Of ADL.StringHelper::toNative