public bool Register(out CacheHandle handle, Buffer buffer, BufferAttribute attr)
            {
                UnsafeHelpers.SkipParamInit(out handle);

                // Validate pre-conditions.
                Assert.SdkRequiresNotNull(Entries);
                Assert.SdkRequiresNotNull(ref handle);

                // Get the entry.
                ref Entry entry = ref AcquireEntry(buffer, attr);
Exemple #2
0
            public bool Register(out CacheHandle handle, Buffer buffer, BufferAttribute attr)
            {
                UnsafeHelpers.SkipParamInit(out handle);

                // Validate pre-conditions.
                Assert.True(Entries != null);
                Assert.True(!Unsafe.IsNullRef(ref handle));

                // Get the entry.
                ref Entry entry = ref AcquireEntry(buffer, attr);
 public void Initialize(CacheHandle handle, Buffer buffer, BufferAttribute attribute)
 {
     _handle    = handle;
     _buffer    = buffer;
     _attribute = attribute;
 }