Class Console
Static class for Console related operations. Provides Write(Byte*, Int32, Byte), Write(ref FixedString512Bytes) and Write(ref FixedString4096Bytes) for low-level writing to the Console. Use BeginBatch() and EndBatch() when you need to write a lot of data in a batch.
Inherited Members
Namespace: Unity.Logging
Syntax
public static class Console
Methods
BeginBatch()
Call this before writing a lot of data to the console. Disables flush behaviour on every end-of-line
Declaration
public static void BeginBatch()
EndBatch()
Call this after BeginBatch() Restores flush behaviour on every end-of-line
Declaration
public static void EndBatch()
Flush()
Flush internal buffer to the console
Declaration
public static void Flush()
Write(Byte*, Int32, Byte)
Unsafe method for writing data to the console
Declaration
public static void Write(byte *data, int length, byte newLine)
Parameters
Type | Name | Description |
---|---|---|
Byte* | data | Pointer to the string |
Int32 | length | Length of the string |
Byte | newLine | if true - add a new line at the end |
Write(ref FixedString4096Bytes)
Writes FixedString to the console
Declaration
public static void Write(ref FixedString4096Bytes message)
Parameters
Type | Name | Description |
---|---|---|
FixedString4096Bytes | message | String to write to the console |
Write(ref FixedString512Bytes)
Writes FixedString to the console
Declaration
public static void Write(ref FixedString512Bytes message)
Parameters
Type | Name | Description |
---|---|---|
FixedString512Bytes | message | String to write to the console |