MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / appendNullString

Method appendNullString

src/common/classes/BlrWriter.h:85–94  ·  view source on GitHub ↗

Write out a string with one byte of length.

Source from the content-addressed store, hash-verified

83
84 // Write out a string with one byte of length.
85 void appendNullString(const char* string)
86 {
87 size_t len = strlen(string);
88
89 // CVC: Maybe the Release version should truncate "len" to 255?
90 fb_assert(len <= MAX_UCHAR);
91
92 appendUChar(static_cast<USHORT>(len));
93 appendBytes(reinterpret_cast<const UCHAR*>(string), static_cast<USHORT>(len));
94 }
95
96 // Write out a string valued attribute.
97 void appendNullString(UCHAR verb, const char* string)

Callers 6

genBlrMethod · 0.80
genBlrMethod · 0.80
gen_planFunction · 0.80
genBlrMethod · 0.80
genParametersMethod · 0.80
genTableLockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected