2 static lldb
::SBFile MakeBorrowed
(lldb
::FileSP BORROWED
) {
3 return lldb
::SBFile
(BORROWED
);
5 static lldb
::SBFile MakeForcingIOMethods
(lldb
::FileSP FORCE_IO_METHODS
) {
6 return lldb
::SBFile
(FORCE_IO_METHODS
);
8 static lldb
::SBFile MakeBorrowedForcingIOMethods
(lldb
::FileSP BORROWED_FORCE_IO_METHODS
) {
9 return lldb
::SBFile
(BORROWED_FORCE_IO_METHODS
);
15 def Create
(cls
, file
, borrow
=False
, force_io_methods
=False
):
17 Create a SBFile from a python file object, with options.
19 If borrow is set then the underlying file will
20 not be closed when the SBFile is closed or destroyed.
22 If force_scripting_io is set then the python read/write
23 methods will be called even if a file descriptor is available.
27 return cls.MakeBorrowedForcingIOMethods
(file
)
29 return cls.MakeBorrowed
(file
)
32 return cls.MakeForcingIOMethods
(file
)