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

Method writeInt

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

Source from the content-addressed store, hash-verified

1#include "DataOutputStream.h"
2
3void DataOutputStream::writeInt(int value) {
4 this->m_outputStream->write((value >> 24) & 0xFF);
5 this->m_outputStream->write((value >> 16) & 0xFF);
6 this->m_outputStream->write((value >> 8) & 0xFF);
7 this->m_outputStream->write(value & 0xFF);
8
9 this->m_size += 4;
10}
11
12void DataOutputStream::writeLong(long long value) {
13 this->m_outputStream->write((value >> 56) & 0xFF);

Callers 15

writeFloatMethod · 0.95
writeMethod · 0.80
saveMethod · 0.80
writeMethod · 0.80
writeMethod · 0.80
writeMethod · 0.80
writeMethod · 0.80
writeMethod · 0.80
writeMethod · 0.80
writeMethod · 0.80
writeMethod · 0.80
writeMethod · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected