MCPcopy Create free account
hub / github.com/TASEmulators/fceux / write64le

Function write64le

src/utils/endian.cpp:105–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105int write64le(uint64 b, std::ostream* os)
106{
107 uint8 s[8];
108 s[0]=b;
109 s[1]=b>>8;
110 s[2]=b>>16;
111 s[3]=b>>24;
112 s[4]=b>>32;
113 s[5]=b>>40;
114 s[6]=b>>48;
115 s[7]=b>>56;
116 os->write((char*)&s,8);
117 return 8;
118}
119
120
121///reads a little endian 32bit value from the specified file

Callers 5

dumpBinaryMethod · 0.85
write64leMethod · 0.85
writedoubleMethod · 0.85
write_double_leFunction · 0.85
writeleFunction · 0.85

Calls 1

fwriteMethod · 0.45

Tested by

no test coverage detected