Vendor asic-rs 0.8.1 (280 crates, offline builds) + wxWidgets 3.3.3 (pristine + patch queue); UI spec + ADR-0003; M1 on asic-rs

This commit is contained in:
2026-09-15 10:41:00 -06:00
parent 6dc77e8eb0
commit a2b65bb47f
16427 changed files with 6972976 additions and 3 deletions
+26
View File
@@ -0,0 +1,26 @@
use std::ops::Deref;
use std::slice;
use windows_sys::Win32::Security::Authentication::Identity;
pub struct ContextBuffer(pub Identity::SecBuffer);
impl Drop for ContextBuffer {
fn drop(&mut self) {
unsafe {
Identity::FreeContextBuffer(self.0.pvBuffer);
}
}
}
impl Deref for ContextBuffer {
type Target = [u8];
fn deref(&self) -> &[u8] {
if self.0.cbBuffer == 0 {
return &[];
}
unsafe { slice::from_raw_parts(self.0.pvBuffer as *const _, self.0.cbBuffer as usize) }
}
}