BUG: OPstream send of tokenType may swallow characters (fixes #563)
- the tokenType was being send via write(char), which includes isspace filtering. If the tokenType enumeration coincides with a whitespace character, it would be suppressed. Now add character directly to the buffer. STYLE: some additional minor private methods to help refactoring - readStringFromBuffer, writeStringToBuffer for common string operation.
Showing
- src/OpenFOAM/db/IOstreams/Pstreams/UIPstream.C 30 additions, 28 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/UIPstream.C
- src/OpenFOAM/db/IOstreams/Pstreams/UIPstream.H 22 additions, 13 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/UIPstream.H
- src/OpenFOAM/db/IOstreams/Pstreams/UOPstream.C 29 additions, 27 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/UOPstream.C
- src/OpenFOAM/db/IOstreams/Pstreams/UOPstream.H 33 additions, 22 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/UOPstream.H
- src/OpenFOAM/db/IOstreams/Pstreams/UPstream.H 1 addition, 1 deletionsrc/OpenFOAM/db/IOstreams/Pstreams/UPstream.H
Please register or sign in to comment