dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System BitConverter.cs, 1.5,


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System BitConverter.cs, 1.5, 1.6
Date: Fri, 22 Aug 2003 03:13:52 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System
In directory subversions:/tmp/cvs-serv21968/runtime/System

Modified Files:
        BitConverter.cs 
Log Message:


Add support for reading non-string resources.


Index: BitConverter.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/BitConverter.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** BitConverter.cs     23 Apr 2003 05:39:48 -0000      1.5
--- BitConverter.cs     22 Aug 2003 07:13:49 -0000      1.6
***************
*** 22,31 ****
  {
  
- #if !ECMA_COMPAT
- 
  using System.Text;
  using System.Runtime.CompilerServices;
  
! public sealed class BitConverter
  {
        // Cannot instantiate this class.
--- 22,34 ----
  {
  
  using System.Text;
  using System.Runtime.CompilerServices;
  
! #if ECMA_COMPAT
! internal
! #else
! public
! #endif
! sealed class BitConverter
  {
        // Cannot instantiate this class.
***************
*** 55,58 ****
--- 58,71 ----
        extern internal static float Int32BitsToFloat(int value);
  
+       // Convert a float value into an array of bytes.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern internal static byte[] GetLittleEndianBytes(float value);
+ 
+       // Convert a double value into an array of bytes.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern internal static byte[] GetLittleEndianBytes(double value);
+ 
+ #if !ECMA_COMPAT
+ 
        // Convert a boolean value into an array of bytes.
        public static byte[] GetBytes(bool value)
***************
*** 229,240 ****
                        }
  
-       // Convert a float value into an array of bytes.
-       [MethodImpl(MethodImplOptions.InternalCall)]
-       extern internal static byte[] GetLittleEndianBytes(float value);
- 
-       // Convert a double value into an array of bytes.
-       [MethodImpl(MethodImplOptions.InternalCall)]
-       extern internal static byte[] GetLittleEndianBytes(double value);
- 
        // Convert a byte within an array into a boolean value.
        public static bool ToBoolean(byte[] value, int startIndex)
--- 242,245 ----
***************
*** 531,537 ****
                        }
  
- }; // class BitConverter
- 
  #endif // !ECMA_COMPAT
  
  }; // namespace System
--- 536,542 ----
                        }
  
  #endif // !ECMA_COMPAT
+ 
+ }; // class BitConverter
  
  }; // namespace System





reply via email to

[Prev in Thread] Current Thread [Next in Thread]