Home | History | Annotate | Download | only in streams

Lines Matching refs:AccessMode

62 inline bool IsReadAccessMode(Stream::AccessMode mode) {
63 return mode == Stream::AccessMode::READ ||
64 mode == Stream::AccessMode::READ_WRITE;
68 inline bool IsWriteAccessMode(Stream::AccessMode mode) {
69 return mode == Stream::AccessMode::WRITE ||
70 mode == Stream::AccessMode::READ_WRITE;
74 inline Stream::AccessMode MakeAccessMode(bool read, bool write) {
77 return Stream::AccessMode::READ_WRITE;
78 return write ? Stream::AccessMode::WRITE : Stream::AccessMode::READ;