@@ -49,7 +49,8 @@ type OfBytes =
4949 static member OfBytes ( _ : int64 , _ : OfBytes ) = fun ( x , i , e ) -> BitConverter.ToInt64 ( x, i, e)
5050 static member OfBytes ( _ : float32 , _ : OfBytes ) = fun ( x , i , e ) -> BitConverter.ToSingle ( x, i, e)
5151
52- static member OfBytes ( _ : string , _ : OfBytes ) = fun ( x , i , _ ) -> BitConverter.ToString ( x, i)
52+ static member OfBytes ( _ : string , _ : OfBytes ) = fun ( x , i , _ ) -> BitConverter.ToString ( x, i)
53+ static member OfBytes ( _ : Guid , _ : OfBytes ) = fun ( x , i , e ) -> BitConverter.ToGuid ( x, i, e)
5354
5455 static member OfBytes ( _ : uint16 , _ : OfBytes ) = fun ( x , i , e ) -> BitConverter.ToUInt16 ( x, i, e)
5556 static member OfBytes ( _ : uint32 , _ : OfBytes ) = fun ( x , i , e ) -> BitConverter.ToUInt32 ( x, i, e)
@@ -70,6 +71,7 @@ type ToBytes =
7071 static member ToBytes ( x : int64 , e , _ : ToBytes ) = BitConverter.GetBytes ( x, BitConverter.IsLittleEndian = e)
7172 static member ToBytes ( x : float32 , e , _ : ToBytes ) = BitConverter.GetBytes ( x, BitConverter.IsLittleEndian = e)
7273 static member ToBytes ( x : string , _ , _ : ToBytes ) = Array.map byte ( x.ToCharArray ())
74+ static member ToBytes ( x : Guid , e , _ : ToBytes ) = BitConverter.GetBytes ( x, BitConverter.IsLittleEndian = e)
7375 static member ToBytes ( x : uint16 , e , _ : ToBytes ) = BitConverter.GetBytes ( x, BitConverter.IsLittleEndian = e)
7476 static member ToBytes ( x : uint32 , e , _ : ToBytes ) = BitConverter.GetBytes ( x, BitConverter.IsLittleEndian = e)
7577 static member ToBytes ( x : uint64 , e , _ : ToBytes ) = BitConverter.GetBytes ( x, BitConverter.IsLittleEndian = e)
0 commit comments