MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / WriteIndent

Method WriteIndent

modules/engine/graphics/src/d3d12/D3D12MemAlloc.cpp:1637–1653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1635}
1636
1637void JsonWriter::WriteIndent(bool oneLess)
1638{
1639 if (!m_Stack.empty() && !m_Stack.back().singleLineMode)
1640 {
1641 m_SB.AddNewLine();
1642
1643 size_t count = m_Stack.size();
1644 if (count > 0 && oneLess)
1645 {
1646 --count;
1647 }
1648 for (size_t i = 0; i < count; ++i)
1649 {
1650 m_SB.Add(INDENT);
1651 }
1652 }
1653}
1654#endif // _D3D12MA_JSON_WRITER_FUNCTIONS
1655#endif // _D3D12MA_JSON_WRITER
1656

Callers

nothing calls this directly

Calls 5

emptyMethod · 0.45
backMethod · 0.45
AddNewLineMethod · 0.45
sizeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected