/// <summary> /// Serialize whole value to a buffer. /// </summary> public void Serialize(byte[] buffer, int offset = 0) { Contract.Requires(buffer != null); Contract.Requires(Length > 0); _bytes.Serialize(buffer, _length, offset); }