Lines Matching refs:fieldLength
31 /*! \brief Creates a new DString \a fieldLength bytes long that contains
32 at most the first \c (fieldLength-1) bytes of \a string.Cs0().
34 DString::DString(const UdfString &string, uint8 fieldLength)
39 SetTo(string, fieldLength);
43 /*! \brief Creates a new DString \a fieldLength bytes long that contains
44 at most the first \c (fieldLength-1) bytes of the Cs0 representation
47 DString::DString(const char *utf8, uint8 fieldLength)
52 SetTo(utf8, fieldLength);
76 /*! \brief Sets the DString be \a fieldLength bytes long and contain
77 at most the first \c (fieldLength-1) bytes of \a string.Cs0().
80 DString::SetTo(const UdfString &string, uint8 fieldLength)
83 if (fieldLength > 0) {
85 fString = new(nothrow) uint8[fieldLength];
91 uint8 destLength = sourceLength > uint8(fieldLength - 1)
92 ? uint8(fieldLength - 1) : uint8(sourceLength);
102 if (destLength < fieldLength - 1)
103 memset(&fString[destLength], 0, fieldLength - 1 - destLength);
105 fString[fieldLength - 1] = destLength;
108 memset(fString, 0, fieldLength);
115 /*! \brief Sets the DString be \a fieldLength bytes long and contain
116 at most the first \c (fieldLength-1) bytes of the Cs0 representation
120 DString::SetTo(const char *utf8, uint8 fieldLength)
123 SetTo(string, fieldLength);