예제 #1
0
        internal byte[] ToBytes()
        {
            var pointer = Cocoa.SendIntPtr(Handle, sel_bytes);
            int size    = Cocoa.SendInt(Handle, sel_length);

            byte[] bytes = new byte[size];
            Marshal.Copy(pointer, bytes, 0, size);
            return(bytes);
        }
예제 #2
0
 internal int ClearContents() => Cocoa.SendInt(Handle, sel_clear_contents);
예제 #3
0
 internal int Count() => Cocoa.SendInt(Handle, sel_count);