Example #1
0
 /// <summary>
 /// Gets the bytes from given value.
 /// </summary>
 /// <param name="v">The value.</param>
 /// <param name="buffer">The buffer.</param>
 public static void GetBytes(UInt32 v, Buffer buffer)
 {
     GetBytes(v, buffer.Bytes, buffer.Offset);
 }
Example #2
0
 /// <summary>
 /// Extracts an <see cref="UInt32" /> from bytes.
 /// </summary>
 /// <param name="buffer">The buffer.</param>
 /// <returns></returns>
 public static UInt32 ToUInt32(Buffer buffer)
 {
     return(ToUInt32(buffer.Bytes, buffer.Offset));
 }
Example #3
0
 /// <summary>
 /// Extracts an <see cref="UInt16" /> from bytes.
 /// </summary>
 /// <param name="buffer">The buffer.</param>
 /// <returns></returns>
 public static UInt16 ToUInt16(Buffer buffer)
 {
     return(ToUInt16(buffer.Bytes, buffer.Offset));
 }
Example #4
0
 /// <summary>
 /// Extracts an <see cref="UInt64" /> from bytes.
 /// </summary>
 /// <param name="buffer">The buffer.</param>
 /// <returns></returns>
 public static UInt64 ToUInt64(Buffer buffer)
 {
     return(ToUInt64(buffer.Bytes, buffer.Offset));
 }