File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -466,12 +466,17 @@ struct object_stringize_visitor {
466466 m_os << ' "' ;
467467 return true ;
468468 }
469- bool visit_bin (const char * v , uint32_t size) {
470- ( m_os << ' " ' ). write (v, static_cast <std::streamsize>( size)) << ' " ' ;
469+ bool visit_bin (const char * /* v */ , uint32_t size) {
470+ m_os << " \" BIN(size: " << size << " ) \" " ;
471471 return true ;
472472 }
473- bool visit_ext (const char * /* v*/ , uint32_t /* size*/ ) {
474- m_os << " EXT" ;
473+ bool visit_ext (const char * v, uint32_t size) {
474+ if (size == 0 ) {
475+ m_os << " \" EXT(size:0)\" " ;
476+ }
477+ else {
478+ m_os << " \" EXT(type:" << static_cast <int >(v[0 ]) << " ,size:" << size - 1 << " )\" " ;
479+ }
475480 return true ;
476481 }
477482 bool start_array (uint32_t num_elements) {
You can’t perform that action at this time.
0 commit comments