Scanner.scanYAMLDirectiveNumberToSlice
void scanYAMLDirectiveNumberToSlice(ref char[] slice, const Mark startMark) @safeScan a number from a YAML directive.
Assumes that the caller is building a slice in Reader, and puts the scanned characters into that slice.