MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2ReadPipe

Function Ext2ReadPipe

Ext2Mgr/Ext2Pipe.cpp:76–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76BOOL Ext2ReadPipe(HANDLE p, PVOID b, DWORD c, PDWORD r)
77{
78 DWORD bytes = 0, total = 0;
79 BOOL rc = FALSE;
80
81 while (total < c) {
82 rc = ReadFile(p,(PCHAR)b + total, c - total, &bytes, NULL);
83 if (rc) {
84 total += bytes;
85 } else {
86 break;
87 }
88 }
89
90 if (r)
91 *r = total;
92 return rc;
93}
94
95
96BOOL Ext2WritePipe(HANDLE p, PVOID b, DWORD c, PDWORD w)

Callers 1

Ext2PipeControlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected