mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Import cstr and segment functions into macho
This commit is contained in:
parent
b6d2316313
commit
362e5bcc6a
3 changed files with 87 additions and 80 deletions
|
|
@ -1,10 +1,12 @@
|
|||
var Cstr = function Cstr(buf) {
|
||||
this.toString = function() {
|
||||
return JSON.stringify(this);
|
||||
};
|
||||
var cstr = '';
|
||||
for(var i = 0; i < buf.length; i++) {
|
||||
cstr += String.fromCharCode(buf[i]);
|
||||
}
|
||||
return cstr;
|
||||
};
|
||||
var Cstr = function Cstr(buf) {
|
||||
this.toString = function() {
|
||||
return JSON.stringify(this);
|
||||
};
|
||||
var cstr = '';
|
||||
for(var i = 0; i < buf.length; i++) {
|
||||
cstr += String.fromCharCode(buf[i]);
|
||||
}
|
||||
return cstr;
|
||||
};
|
||||
|
||||
export default Cstr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue