MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / vfwrite

Method vfwrite

source/core/StarDataStream.hpp:287–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285
286template <typename FloatType>
287void DataStream::vfwrite(FloatType const& data, FloatType base) {
288 writeVlqI((int64_t)round(data / base));
289}
290
291template <typename PointerType, typename ReadFunction>
292void DataStream::pread(PointerType& pointer, ReadFunction readFunction) {

Callers 2

writeMethod · 0.80
StarDamage.cppFile · 0.80

Calls 2

writeVlqIFunction · 0.85
roundFunction · 0.85

Tested by

no test coverage detected