Make _fast explicit in copy_n_from_history_fast

This commit is contained in:
Nigel Tao committed 2018-07-08 21:39:18 +10:00
1 parent 8a449fa92e
commit e49d464432
6 files changed
+131 -150

No files matched your search

+7
View File
@@ -244,6 +244,13 @@ var Funcs = []string{
"io_writer.copy_n_from_reader!(n u32, r io_reader)(ret u32)",
"io_writer.copy_n_from_slice!(n u32, s slice u8)(ret u32)",
// TODO: this should have explicit pre-conditions:
// - n <= this.available()
// - distance > 0
// - distance <= this.since_mark().length()
// For now, that's all implicitly checked (i.e. hard coded).
"io_writer.copy_n_from_history_fast!(n u32, distance u32)(ret u32)",
// ---- status
"status.is_error()(ret bool)",