MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / HasRoom

Method HasRoom

src/settingsgen/settingsgen.cpp:73–76  ·  view source on GitHub ↗

* Does the block have room for more data? * @return \c true if room is available, else \c false. */

Source from the content-addressed store, hash-verified

71 * @return \c true if room is available, else \c false.
72 */
73 bool HasRoom() const
74 {
75 return this->size < OUTPUT_BLOCK_SIZE;
76 }
77
78 size_t size; ///< Number of bytes stored in \a data.
79 char data[OUTPUT_BLOCK_SIZE]; ///< Stored data.

Callers 1

BufferHasRoomMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected