示例#1
0
 private SafeAlpcMessageAttributesBuffer(int total_length) : base(total_length, false)
 {
     BufferUtils.ZeroBuffer(this);
     _resources = new DisposableList();
 }
示例#2
0
 internal static SafeBuffer AddNulTerminatedUnicodeString(this DisposableList list, string str)
 {
     return(AddBytes(list, Encoding.Unicode.GetBytes(str + "\0")));
 }
示例#3
0
 internal static SafeBuffer AddList <T>(this DisposableList list, IEnumerable <T> values) where T : new()
 {
     return(values.ToArray().ToBuffer());
 }
示例#4
0
 internal static SafeStructureInOutBuffer <T> AddStructureRef <T>(this DisposableList list, T value) where T : struct
 {
     return(list.AddResource(new SafeStructureInOutBuffer <T>(value)));
 }