/// <summary> /// Feeds the response back to the libmongocrypt /// </summary> /// <param name="buffer">The response.</param> public void Feed(byte[] buffer) { unsafe { fixed(byte *p = buffer) { IntPtr ptr = (IntPtr)p; using (PinnedBinary pinned = new PinnedBinary(ptr, (uint)buffer.Length)) { Check(Library.mongocrypt_kms_ctx_feed(_id, pinned.Handle)); } } } }