public void UpdateStoredBuffer_Struct() { WInt32 w = 3; w.SerializeLazinator(); w.LazinatorMemoryStorage.IsEmpty.Should().BeFalse(); w.WrappedValue.Should().Be(3); }
void BinaryHashInList() { var wrapped = new WInt32(1); var wrapped2 = new WInt32(1); LazinatorList <WInt32> x = new LazinatorList <WInt32>(); x.Add(wrapped2); x.GetListMemberHash32(0).Should().Be(wrapped.GetBinaryHashCode32()); var clone = x.CloneLazinatorTyped(); clone.GetListMemberHash32(0).Should().Be(wrapped.GetBinaryHashCode32()); }
private void LazinateWrappedInt() { if (LazinatorMemoryStorage.Length == 0) { _WrappedInt = default(WInt32); _WrappedInt.LazinatorParents = new LazinatorParentsCollection(this); } else { LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _WrappedInt_ByteIndex, _WrappedInt_ByteLength, null); _WrappedInt = new WInt32(childData) { LazinatorParents = new LazinatorParentsCollection(this) }; } _WrappedInt_Accessed = true; }