- (void)appendBytes:(const void *)bytes length:(NSUInteger)length; //跟原来的数据进行拼接数据 - (void)appendData:(NSData *)other; //将接收器的长度增加给定的字节数 - (void)increaseLengthBy:(NSUInteger)extraLength; //删除 - (void)replaceBytesInRange:(NSRange)range withBytes:(const void *)bytes; //清空数据 - (void)resetBytesInRange:(NSRange)range; //覆盖原有数据 - (void)setData:(NSData *)data; - //删除 - (void)replaceBytesInRange:(NSRange)range withBytes:(nullable const void *)replacementBytes length:(NSUInteger)replacementLength;
|