public static unsafe uint GetBatteryInformation(this XInput thisApi, uint dwUserIndex, byte devType, Span <BatteryInformation> pBatteryInformation) { // SpanOverloader return(thisApi.GetBatteryInformation(dwUserIndex, devType, ref pBatteryInformation.GetPinnableReference())); }