2 instantiations of SafeBerHandle
System.DirectoryServices.Protocols (2)
System\DirectoryServices\Protocols\common\BerConverter.cs (2)
26SafeBerHandle berElement = new SafeBerHandle(); 330berElement = new SafeBerHandle(berValue);
46 references to SafeBerHandle
System.DirectoryServices.Protocols (46)
src\libraries\Common\src\Interop\Linux\OpenLdap\Interop.Ber.cs (28)
24public static int ber_printf_emptyarg(SafeBerHandle berElement, string format, nuint tag) 50public static partial int ber_start_seq(SafeBerHandle berElement, nuint tag); 53public static partial int ber_start_set(SafeBerHandle berElement, nuint tag); 56public static partial int ber_put_seq(SafeBerHandle berElement, nuint tag); 59public static partial int ber_put_set(SafeBerHandle berElement, nuint tag); 62public static partial int ber_put_null(SafeBerHandle berElement, nuint tag); 64public static int ber_printf_int(SafeBerHandle berElement, string format, int value, nuint tag) 82public static partial int ber_put_int(SafeBerHandle berElement, int value, nuint tag); 85public static partial int ber_put_enum(SafeBerHandle berElement, int value, nuint tag); 88public static partial int ber_put_boolean(SafeBerHandle berElement, int value, nuint tag); 90public static int ber_printf_bytearray(SafeBerHandle berElement, string format, HGlobalMemHandle value, nuint length, nuint tag) 108private static partial int ber_put_ostring(SafeBerHandle berElement, HGlobalMemHandle value, nuint length, nuint tag); 111private static partial int ber_put_string(SafeBerHandle berElement, HGlobalMemHandle value, nuint tag); 114private static partial int ber_put_bitstring(SafeBerHandle berElement, HGlobalMemHandle value, nuint length, nuint tag); 117public static partial int ber_flatten(SafeBerHandle berElement, ref IntPtr value); 125public static int ber_scanf_emptyarg(SafeBerHandle berElement, string format) 145private static partial int ber_skip_tag(SafeBerHandle berElement, ref nuint len); 148private static partial int ber_get_null(SafeBerHandle berElement); 150public static int ber_scanf_int(SafeBerHandle berElement, string format, ref int value) 168private static partial int ber_get_int(SafeBerHandle berElement, ref int value); 171private static partial int ber_get_enum(SafeBerHandle berElement, ref int value); 174private static partial int ber_get_boolean(SafeBerHandle berElement, ref int value); 176public static int ber_scanf_bitstring(SafeBerHandle berElement, string format, ref IntPtr value, ref uint bitLength) 186private static partial int ber_get_stringb(SafeBerHandle berElement, ref IntPtr value, ref nuint bitLength); 188public static int ber_scanf_ptr(SafeBerHandle berElement, string format, ref IntPtr value) 195private static partial int ber_get_stringal(SafeBerHandle berElement, ref IntPtr value); 198public static int ber_printf_berarray(SafeBerHandle berElement, string format, IntPtr value, nuint tag) 205public static int ber_scanf_multibytearray(SafeBerHandle berElement, string format, ref IntPtr value)
System\DirectoryServices\Protocols\common\BerConverter.cs (6)
26SafeBerHandle berElement = new SafeBerHandle(); 311SafeBerHandle berElement = null; 462private static int EncodingByteArrayHelper(SafeBerHandle berElement, byte[] tempValue, char fmt, nuint tag) 483private static byte[] DecodingByteArrayHelper(SafeBerHandle berElement, char fmt, out int error) 517private static unsafe int EncodingMultiByteArrayHelper(SafeBerHandle berElement, byte[][] tempValue, char fmt, nuint tag) 586private static byte[][] DecodingMultiByteArrayHelper(SafeBerHandle berElement, char fmt, out int error)
System\DirectoryServices\Protocols\common\BerConverter.Linux.cs (1)
10private static int DecodeBitStringHelper(ArrayList resultList, SafeBerHandle berElement)
System\DirectoryServices\Protocols\Interop\BerPal.Linux.cs (11)
14internal static int FlattenBerElement(SafeBerHandle berElement, ref IntPtr flattenptr) => Interop.Ldap.ber_flatten(berElement, ref flattenptr); 16internal static int PrintBerArray(SafeBerHandle berElement, string format, IntPtr value, nuint tag) => Interop.Ldap.ber_printf_berarray(berElement, format, value, tag); 18internal static int PrintByteArray(SafeBerHandle berElement, string format, HGlobalMemHandle value, nuint length, nuint tag) => Interop.Ldap.ber_printf_bytearray(berElement, format, value, length, tag); 20internal static int PrintEmptyArgument(SafeBerHandle berElement, string format, nuint tag) => Interop.Ldap.ber_printf_emptyarg(berElement, format, tag); 22internal static int PrintInt(SafeBerHandle berElement, string format, int value, nuint tag) => Interop.Ldap.ber_printf_int(berElement, format, value, tag); 24internal static int PrintTag(SafeBerHandle _1, string _2, nuint _3) 31internal static int ScanNext(SafeBerHandle berElement, string format) => Interop.Ldap.ber_scanf_emptyarg(berElement, format); 33internal static int ScanNextBitString(SafeBerHandle berElement, string format, ref IntPtr ptrResult, ref uint bitLength) => Interop.Ldap.ber_scanf_bitstring(berElement, format, ref ptrResult, ref bitLength); 35internal static int ScanNextInt(SafeBerHandle berElement, string format, ref int result) => Interop.Ldap.ber_scanf_int(berElement, format, ref result); 37internal static int ScanNextPtr(SafeBerHandle berElement, string format, ref IntPtr value) => Interop.Ldap.ber_scanf_ptr(berElement, format, ref value); 39internal static int ScanNextMultiByteArray(SafeBerHandle berElement, string format, ref IntPtr value) => Interop.Ldap.ber_scanf_multibytearray(berElement, format, ref value);