这些是等价的吗?
对象-C:
[commands appendBytes:"\x1b\x1d\x61\x01"
length:sizeof("\x1b\x1d\x61\x01") - 1];
C#:
NSMutableData commands = new NSMutableData ();
commands.AppendBytes (new byte[] {0x1b, 0x1d, 0x61, 0x01});
这些是等价的吗?
对象-C:
[commands appendBytes:"\x1b\x1d\x61\x01"
length:sizeof("\x1b\x1d\x61\x01") - 1];
C#:
NSMutableData commands = new NSMutableData ();
commands.AppendBytes (new byte[] {0x1b, 0x1d, 0x61, 0x01});