Write out a string with one byte of length.
| 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) |
no outgoing calls
no test coverage detected