MCPcopy Create free account
hub / github.com/GRAnimated/MinecraftLCE / writeLong

Method writeLong

src/Minecraft.World/java/io/DataOutputStream.cpp:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12void DataOutputStream::writeLong(long long value) {
13 this->m_outputStream->write((value >> 56) & 0xFF);
14 this->m_outputStream->write((value >> 48) & 0xFF);
15 this->m_outputStream->write((value >> 40) & 0xFF);
16 this->m_outputStream->write((value >> 32) & 0xFF);
17 this->m_outputStream->write((value >> 24) & 0xFF);
18 this->m_outputStream->write((value >> 16) & 0xFF);
19 this->m_outputStream->write((value >> 8) & 0xFF);
20 this->m_outputStream->write(value & 0xFF);
21
22 this->m_size += 4; // only incremented by 4... thanks 4J
23}
24
25void DataOutputStream::writeBoolean(bool value) {
26 this->m_outputStream->write(value);

Callers 4

writeDoubleMethod · 0.95
saveMethod · 0.80
writeMethod · 0.80
writeMethod · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected