Skip to content

Instantly share code, notes, and snippets.

@dbp
Created August 25, 2012 22:18
Show Gist options
  • Save dbp/3471529 to your computer and use it in GitHub Desktop.
Save dbp/3471529 to your computer and use it in GitHub Desktop.
visit_estr_fixed
fn visit_estr_fixed(_n: uint, _sz: uint,
_align: uint) -> bool {
self.align(_align);
self.out += ~"\"";
unsafe {
self.out += str::unsafe::from_buf_len(self.ptr as *u8, _n);
}
self.bump(_sz);
self.out += ~"\"";
true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment