public static int EncodeBase64(IntPtr buffer, int bufferSize, ref IntPtr encodedBuffer, ref int encodedSize) { int num = 0; try { num = GrFingerprintProxy.EncodeBase64(buffer, bufferSize, encodedBuffer, ref encodedSize); } catch (AccessViolationException exception) { FingerprintException exception2 = new FingerprintException(-113, exception); throw exception2; } return(num); }