public static int snprintf(StringBuilder s, string format, params object[] parameters) { object[] capacity = new object[checked ((int)parameters.Length + 3)]; capacity[0] = s; capacity[1] = (ulong)((long)s.Capacity); capacity[2] = format; Array.Copy(parameters, 0, capacity, 3, (int)parameters.Length); return((int)XPrintfFunctions.snprintf(capacity)); }
public static int snprintf(StringBuilder s, string format, params object[] parameters) { object[] _parameters = new object[checked (parameters.Length + 3)]; _parameters [0] = s; _parameters [1] = (ulong)s.Capacity; _parameters [2] = format; Array.Copy(parameters, 0, _parameters, 3, parameters.Length); return((int)XPrintfFunctions.snprintf(_parameters)); }
public static int snprintf(StringBuilder s, ulong n, string format, params object[] parameters) { if (n > (long)s.Capacity) { throw new ArgumentOutOfRangeException("n", "n must be <= s.Capacity"); } object[] objArray = new object[checked ((int)parameters.Length + 3)]; objArray[0] = s; objArray[1] = n; objArray[2] = format; Array.Copy(parameters, 0, objArray, 3, (int)parameters.Length); return((int)XPrintfFunctions.snprintf(objArray)); }