/// <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)); }
/// <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); }
public void Decode(ByteBuffer buffer) { this.uuid = UuidEncoding.Decode(buffer, 0).Value; }
/// <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)); }
public void Encode(ByteBuffer buffer) { UuidEncoding.Encode(this.uuid, buffer); }