From c3aed6984f7d5c375f49176ccf46dc0d39c464eb Mon Sep 17 00:00:00 2001 From: Oscar Smith Date: Tue, 6 Feb 2024 13:17:24 -0500 Subject: [PATCH] Support arbitrary `DenseVector{UInt8}` as valid sources. --- src/CSV.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CSV.jl b/src/CSV.jl index 7a6789a9..fd9d90b1 100644 --- a/src/CSV.jl +++ b/src/CSV.jl @@ -65,7 +65,7 @@ const DEFAULT_MAX_INLINE_STRING_LENGTH = 32 const TRUE_STRINGS = ["true", "True", "TRUE", "T", "1"] const FALSE_STRINGS = ["false", "False", "FALSE", "F", "0"] const StringCodeUnits = Base.CodeUnits{UInt8, String} -const ValidSources = Union{Vector{UInt8}, SubArray{UInt8, 1, Vector{UInt8}}, StringCodeUnits, IO, Cmd, AbstractString, AbstractPath} +const ValidSources = Union{DenseVector{UInt8}, StringCodeUnits, IO, Cmd, AbstractString, AbstractPath} const MAX_INPUT_SIZE = Int === Int64 ? 2^42 : typemax(Int32) const EMPTY_INT_ARRAY = Int[]