/// <summary> /// Deserialize the stream. /// </summary> /// <param name="streamByte">data array in byte</param> /// <param name="startIndex">The startIndex in the data array</param> /// <returns>The size of this structure</returns> public int Deserialize(byte[] streamByte, int startIndex) { int index = startIndex; this.ReplGuid = new byte[ReplGuidLength]; Array.Copy(streamByte, index, this.ReplGuid, 0, ReplGuidLength); index += this.ReplGuid.Length; byte[] globsetBytes = new byte[streamByte.Length - ReplGuidLength]; Array.Copy(streamByte, index, globsetBytes, 0, globsetBytes.Length); this.Globset = new Globset(globsetBytes); return(this.Size()); }
/// <summary> /// Deserialize the stream. /// </summary> /// <param name="streamByte">data array in byte</param> /// <param name="startIndex">The startIndex in the data array</param> /// <returns>The size of this structure</returns> public int Deserialize(byte[] streamByte, int startIndex) { int index = startIndex; this.ReplGuid = new byte[ReplGuidLength]; Array.Copy(streamByte, index, this.ReplGuid, 0, ReplGuidLength); index += this.ReplGuid.Length; byte[] globsetBytes = new byte[streamByte.Length - ReplGuidLength]; Array.Copy(streamByte, index, globsetBytes, 0, globsetBytes.Length); this.Globset = new Globset(globsetBytes); return this.Size(); }