1 %extend lldb::SBStream { 2 #ifdef SWIGPYTHON 3 %pythoncode%{ 4 def __len__(self): 5 return self.GetSize() 6 %} 7 #endif 8 9 %feature("autodoc", "DEPRECATED, use RedirectToFile") RedirectToFileHandle; 10 void 11 RedirectToFileHandle (lldb::FileSP file, bool transfer_fh_ownership) { 12 self->RedirectToFile(file); 13 } 14 } 15