32 PHDWORD dataBlockLengthDwords, dataBlockLengthBytes, paddingBytes;
37 dataBlockLengthBytes = dataBlockLengthDwords*
DWORD_SIZE;
39 return dataBlockLengthBytes - paddingBytes;
50 PHDWORD dataLengthWords = dataLengthBytes/wordSize;
52 if (dataLengthBytes % wordSize != 0) {
56 else return dataLengthWords;
68 PHDWORD newLength, newLengthBytes, newLengthDwords;
81 newLength = currentLength + addWords;
88 if (modulo > 0) newPadding =
DWORD_SIZE - modulo;
91 newLengthDwords = (newLengthBytes + newPadding)/
DWORD_SIZE;
98 return newLengthDwords;