一键喂鱼

This commit is contained in:
kai60
2022-05-22 17:45:57 +08:00
parent 74076baf88
commit 2423e97bf8
7 changed files with 424 additions and 296 deletions
+6 -3
View File
@@ -15,10 +15,13 @@
+(NSString *)ToHex:(long long int)tmpid;
/// 十进制转二进制,补全,截取特定位置
/// @param decimal 十进制
/// @param location 截取位数从末尾开始123...
/// @param location 截取位数从为开始0,12,3
/// @param totalLength 补全位数,例如8位,4位,传0不会处理
+ (NSString *)getBinaryByDecimal:(NSInteger)decimal location:(NSInteger)location totalLength:(NSInteger)totalLength;
+ (NSString *)getBinaryByHex:(NSString*)decimal location:(NSInteger)location;
//+ (NSString *)getBinaryByDecimal:(NSInteger)num;
+ (NSString *)getBinaryByHex:(NSString *)hex;
+ (NSString *)getHexByBinary:(NSString *)binary;
//+ (NSString *)convertDecimalSystemFromBinarySystem:(NSString *)binary;
+(UInt64)hexToTen:(NSString*)str;
+(NSString *)groupNumberTohex:(NSInteger)number;
+(NSString *)stringFromHexString:(NSString *)hexString;