21.int32_t 转NSData(占八位) //bigEndian 传no +(NSData *) bytesFromInt32:(int)val bigEndian:(BOOL)bigEndian { char myByteArray[] = {0,0,0,0}; if(bigEndian) { myByteArray[3]=val & 0xff; myByteArray[2]=(val>>8) & 0xff; myByteArray[1]=(val>>16) & 0xff; myByte...
大家好,又见面了,我是你们的朋友全栈 Java中没有Int32,Int64,,只有int,short,long Java中int就代表Int32,short就代表Int16,long就代表Int64...首先,几个基本的关键字: Int16 = short, 占2个字节. -32768 ~ 32767Int32= int, 占4个字节. -2147483648 ~ 2147483647 Int64...的别名,是等价的,short,long...