h6. [[Programmer's Reference Manuals]] h6(. » [[Vectors]] h6((. » [[Software Vector Numbers]] h6(((. » CnpV h2. Count/Purge Vector (22) |_<^{width:3em}. Entry |<^. | |<^. R1|<^. [[Buffer Numbers|Buffer number]]| |\2<^. V flag and C flag encode the action:| |<^. |<^. V flag = 0, C flag = 0: Return number of entries| |<^. |<^. V flag = 0, C flag = 1: Return amount of free space| |<^. |<^. V flag = 1: Flush buffer| |_<^{width:3em}. Exit |<^. | |<^. R0|<^. Corrupted| |<^. R1-R2|<^. Preserved (if purge), else;| |<^. R1|<^. <code>Count AND &FF</code>| |<^. R2|<^. <code>Count >> &FF</code>| h4. Use This vector is called to count the number of entries or spaces in a buffer, or to flush the contents of a buffer. h4. Notes If called via [[OS_CallAVector]] then interrupts must be disabled first. h4. See also * [[Buffer Numbers]] * [[OS_CallAVector]] * [[Software Vector Numbers]]