コード例 #1
0
ファイル: NUtils.cs プロジェクト: MrxLoicx/Projects
 internal static unsafe byte[] GetBytes(float value)
 {
     return(BitConverterLE.GetUIntBytes((byte *)&value));
 }
コード例 #2
0
ファイル: NUtils.cs プロジェクト: MrxLoicx/Projects
 internal static unsafe byte[] GetBytes(double value)
 {
     return(BitConverterLE.GetULongBytes((byte *)&value));
 }
コード例 #3
0
ファイル: NUtils.cs プロジェクト: MrxLoicx/Projects
 internal static unsafe byte[] GetBytes(ushort value)
 {
     return(BitConverterLE.GetUShortBytes((byte *)&value));
 }