Class Util
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
Fields
DebugBreakOnDevAssert
Declaration
public static bool DebugBreakOnDevAssert
Field Value
Methods
AppendArrays<T>(Object[])
Declaration
public static T[] AppendArrays<T>(params object[] args)
Parameters
Type |
Name |
Description |
Object[] |
args |
|
Returns
Type Parameters
BufferCopy(Int32[], Int32[])
Declaration
public static int[] BufferCopy(int[] from, int[] to)
Parameters
Returns
BufferCopy(Single[], Single[])
Declaration
public static float[] BufferCopy(float[] from, float[] to)
Parameters
Returns
ByteArrayToStructure(Byte[], ref Object)
Declaration
public static void ByteArrayToStructure(byte[] bytearray, ref object obj)
Parameters
gBreakToDebugger()
Declaration
public static void gBreakToDebugger()
gDevAssert(Boolean, String)
Declaration
public static void gDevAssert(bool bValue, string message = "gDevAssert")
Parameters
IsASCIIControlChar(Int32)
test if character is ascii control character, which (presumably?) won't
occur in unicode files?
Declaration
public static bool IsASCIIControlChar(int ch)
Parameters
Type |
Name |
Description |
Int32 |
ch |
|
Returns
IsBinaryFile(String, Int32)
check if file contains bytes that correspond to ascii control characters,
which would not occur in a plain text file, but are likely in a binary file.
(note: this is not conclusive! for example if binary file was all FF's, this would return true)
Declaration
public static bool IsBinaryFile(string path, int max_search_len = -1)
Parameters
Returns
IsBinaryStream(Stream, Int32)
Declaration
public static bool IsBinaryStream(Stream streamIn, int max_search_len = -1)
Parameters
Type |
Name |
Description |
Stream |
streamIn |
|
Int32 |
max_search_len |
|
Returns
IsBitSet(Byte, Int32)
Declaration
public static bool IsBitSet(byte b, int pos)
Parameters
Returns
IsBitSet(Int32, Int32)
Declaration
public static bool IsBitSet(int n, int pos)
Parameters
Returns
IsRunningOnMono()
Declaration
public static bool IsRunningOnMono()
Returns
IsTextString(Byte[])
Declaration
public static bool IsTextString(byte[] array)
Parameters
Type |
Name |
Description |
Byte[] |
array |
|
Returns
Declaration
public static string MakeFloatFormatString(int i, int nPrecision)
Parameters
Returns
Declaration
public static string MakeVec3FormatString(int i0, int i1, int i2, int nPrecision)
Parameters
Returns
ParseDouble(String, Double)
Declaration
public static double ParseDouble(string s, double fDefault)
Parameters
Returns
ParseFloat(String, Single)
Declaration
public static float ParseFloat(string s, float fDefault)
Parameters
Returns
ParseInt(String, Int32)
Declaration
public static float ParseInt(string s, int nDefault)
Parameters
Returns
StructureToByteArray(Object)
Declaration
public static byte[] StructureToByteArray(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
ToHexString(Byte[], Boolean)
Declaration
public static string ToHexString(byte[] bytes, bool upperCase = false)
Parameters
Returns
ToSecMilli(TimeSpan)
Declaration
public static string ToSecMilli(TimeSpan t)
Parameters
Returns
WriteDebugMesh(IMesh, String)
Declaration
public static void WriteDebugMesh(IMesh mesh, string sPath)
Parameters
WriteDebugMeshAndMarkers(IMesh, List<Vector3d>, String)
Declaration
public static void WriteDebugMeshAndMarkers(IMesh mesh, List<Vector3d> Markers, string sPath)
Parameters