Inheritance: NSObject
Exemple #1
0
 public static NSTimeZone FromName(string name, NSData data)
 {
     return Runtime.GetNSObject<NSTimeZone>(ObjC.MessageSendIntPtr(_classHandle, Selector.GetHandle("timeZoneWithName:data:"), name, data.Handle));
 }
Exemple #2
0
            protected override void Dispose(bool disposing)
            {
                _data = null;

                base.Dispose(disposing);
            }
Exemple #3
0
 public static NSData FromData(NSData source)
 {
     return(Runtime.GetNSObject <NSData>(ObjC.MessageSendIntPtr(_classHandle, Selector.GetHandle("dataWithData:"), source.Handle)));
 }
Exemple #4
0
 public static UIImage LoadFromData(NSData data, float scale)
 {
     return Runtime.GetNSObject<UIImage>(ObjC.MessageSendIntPtr(_classHandle, Selector.GetHandle("imageWithData:scale:"), data.Handle, scale));
 }
Exemple #5
0
#pragma warning restore 414

            public unsafe UnmanagedMemoryStreamWithRef(NSData source)
                : base((byte *)((void *)source.Bytes), (long)((ulong)source.Length))
            {
                _data = source;
            }
Exemple #6
0
 public static UIImage LoadFromData(NSData data, float scale)
 {
     return(Runtime.GetNSObject <UIImage>(ObjC.MessageSendIntPtr(_classHandle, Selector.GetHandle("imageWithData:scale:"), data.Handle, scale)));
 }
Exemple #7
0
 public static NSTimeZone FromName(string name, NSData data)
 {
     return(Runtime.GetNSObject <NSTimeZone>(ObjC.MessageSendIntPtr(_classHandle, Selector.GetHandle("timeZoneWithName:data:"), name, data.Handle)));
 }
Exemple #8
0
 public static NSData FromData(NSData source)
 {
     return Runtime.GetNSObject<NSData>(ObjC.MessageSendIntPtr(_classHandle, Selector.GetHandle("dataWithData:"), source.Handle));
 }
Exemple #9
0
            protected override void Dispose(bool disposing)
            {
                _data = null;

                base.Dispose(disposing);
            }
Exemple #10
0
#pragma warning restore 414

            public unsafe UnmanagedMemoryStreamWithRef(NSData source)
                : base((byte*)((void*)source.Bytes), (long)((ulong)source.Length))
            {
                _data = source;
            }