1
2
3
4
5
6
7
8
9
|
/*
* Copyright (c) 2008-2022 Jonathan Schleifer <js@nil.im>
*
* All rights reserved.
*
* This file is part of ObjFW. It may be distributed under the terms of the
* Q Public License 1.0, which can be found in the file LICENSE.QPL included in
* the packaging of this file.
*
|
|
|
1
2
3
4
5
6
7
8
9
|
/*
* Copyright (c) 2008-2023 Jonathan Schleifer <js@nil.im>
*
* All rights reserved.
*
* This file is part of ObjFW. It may be distributed under the terms of the
* Q Public License 1.0, which can be found in the file LICENSE.QPL included in
* the packaging of this file.
*
|
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
|
}
return (size_t)bytesWritten;
}
- (void)closeForWriting
{
if (_writePipe[1] != NULL)
CloseHandle(_writePipe[1]);
_writePipe[1] = NULL;
}
- (void)close
{
if (_readPipe[0] == NULL)
|
|
>
>
|
|
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
|
}
return (size_t)bytesWritten;
}
- (void)closeForWriting
{
if (_readPipe[0] == NULL || _writePipe[1] == NULL)
@throw [OFNotOpenException exceptionWithObject: self];
CloseHandle(_writePipe[1]);
_writePipe[1] = NULL;
}
- (void)close
{
if (_readPipe[0] == NULL)
|