MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / writeBlob

Method writeBlob

JUCE/modules/juce_osc/osc/juce_OSCSender.cpp:76–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 bool writeBlob (const MemoryBlock& blob)
77 {
78 if (! (output.writeIntBigEndian ((int) blob.getSize())
79 && output.write (blob.getData(), blob.getSize())))
80 return false;
81
82 const size_t numPaddingZeros = ~(blob.getSize() - 1) & 3;
83
84 return output.writeRepeatedByte (0, numPaddingZeros);
85 }
86
87 bool writeColour (OSCColour colour)
88 {

Callers

nothing calls this directly

Calls 5

writeIntBigEndianMethod · 0.80
getSizeMethod · 0.45
writeMethod · 0.45
getDataMethod · 0.45
writeRepeatedByteMethod · 0.45

Tested by

no test coverage detected