Beispiel #1
0
 /// <summary>
 /// Decodes a uuid from the buffer and advances the buffer's position.
 /// </summary>
 /// <param name="buffer">The buffer to read.</param>
 /// <returns>A uuid.</returns>
 public static Guid?DecodeUuid(ByteBuffer buffer)
 {
     return(UuidEncoding.Decode(buffer, 0));
 }
Beispiel #2
0
 /// <summary>
 /// Encodes a uuid and appends the bytes to the buffer.
 /// </summary>
 /// <param name="data">The uuid.</param>
 /// <param name="buffer">The destination buffer.</param>
 public static void EncodeUuid(Guid?data, ByteBuffer buffer)
 {
     UuidEncoding.Encode(data, buffer);
 }
Beispiel #3
0
 public void Decode(ByteBuffer buffer)
 {
     this.uuid = UuidEncoding.Decode(buffer, 0).Value;
 }
Beispiel #4
0
 /// <summary>
 /// Gets the encode size of a uuid.
 /// </summary>
 /// <param name="value">The uuid.</param>
 /// <returns>Encode size in bytes of the uuid.</returns>
 public static int GetUuidEncodeSize(Guid?value)
 {
     return(UuidEncoding.GetEncodeSize(value));
 }
Beispiel #5
0
 public void Encode(ByteBuffer buffer)
 {
     UuidEncoding.Encode(this.uuid, buffer);
 }