Skip to content

chore: Use GetBytesFromBase64 / WriteBase64StringValue to avoid string allocations #190

chore: Use GetBytesFromBase64 / WriteBase64StringValue to avoid string allocations

chore: Use GetBytesFromBase64 / WriteBase64StringValue to avoid string allocations #190

Triggered via pull request March 4, 2026 11:29
Status Success
Total duration 2m 25s
Artifacts

ci.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

150 warnings
build (9.x, net9.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (9.x, net9.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/QueryString.cs#L109
Possible null reference argument for parameter 'item2' in 'Tuple<PropertyInfo, TAttribType>.Tuple(PropertyInfo item1, TAttribType item2)'.
build (9.x, net9.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (9.x, net9.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (9.x, net9.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (8.x, net8.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/QueryString.cs#L109
Possible null reference argument for parameter 'item2' in 'Tuple<PropertyInfo, TAttribType>.Tuple(PropertyInfo item1, TAttribType item2)'.
build (8.x, net8.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (8.x, net8.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (8.x, net8.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (8.x, net8.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (9.x, net9.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/JsonEnumMemberConverter.cs#L5
Nullability of reference types in value of type 'Dictionary<string, string?>' doesn't match target type 'Dictionary<string, string>'.
build (9.x, net9.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (9.x, net9.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (9.x, net9.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (9.x, net9.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (9.x, net9.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/EnumerableQueryStringConverter.cs#L24
Possible null reference argument for parameter 'item' in 'void List<string>.Add(string item)'.
build (9.x, net9.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/Models/ObjectExtensionData.cs#L6
Non-nullable property 'ExtensionData' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build (8.x, net8.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (8.x, net8.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (8.x, net8.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (8.x, net8.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (8.x, net8.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/Models/ObjectExtensionData.cs#L6
Non-nullable property 'ExtensionData' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build (8.x, net8.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/EnumerableQueryStringConverter.cs#L24
Possible null reference argument for parameter 'item' in 'void List<string>.Add(string item)'.
build (8.x, net8.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1, t...: src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (8.x, net8.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1, t...: src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (8.x, net8.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1, t...: src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (8.x, net8.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1, t...: src/Docker.DotNet/EnumerableQueryStringConverter.cs#L24
Possible null reference argument for parameter 'item' in 'void List<string>.Add(string item)'.
build (8.x, net8.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1, t...: src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (8.x, net8.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1, t...: src/Docker.DotNet/Models/ObjectExtensionData.cs#L6
Non-nullable property 'ExtensionData' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build (8.x, net8.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/QueryString.cs#L109
Possible null reference argument for parameter 'item2' in 'Tuple<PropertyInfo, TAttribType>.Tuple(PropertyInfo item1, TAttribType item2)'.
build (8.x, net8.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (8.x, net8.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (8.x, net8.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (8.x, net8.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/JsonEnumMemberConverter.cs#L5
Nullability of reference types in value of type 'Dictionary<string, string?>' doesn't match target type 'Dictionary<string, string>'.
build (8.x, net8.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/EnumerableQueryStringConverter.cs#L24
Possible null reference argument for parameter 'item' in 'void List<string>.Add(string item)'.
build (9.x, net9.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/JsonEnumMemberConverter.cs#L5
Nullability of reference types in value of type 'Dictionary<string, string?>' doesn't match target type 'Dictionary<string, string>'.
build (9.x, net9.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (9.x, net9.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (9.x, net9.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (9.x, net9.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (9.x, net9.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/EnumerableQueryStringConverter.cs#L24
Possible null reference argument for parameter 'item' in 'void List<string>.Add(string item)'.
build (10.x, net10.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/QueryString.cs#L109
Possible null reference argument for parameter 'item2' in 'Tuple<PropertyInfo, TAttribType>.Tuple(PropertyInfo item1, TAttribType item2)'.
build (10.x, net10.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (10.x, net10.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (10.x, net10.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (10.x, net10.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (10.x, net10.0, unix, unix:///var/run/docker.sock, 0, false): src/Docker.DotNet/EnumerableQueryStringConverter.cs#L24
Possible null reference argument for parameter 'item' in 'void List<string>.Add(string item)'.
build (10.x, net10.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (10.x, net10.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (10.x, net10.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (10.x, net10.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (10.x, net10.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/EnumerableQueryStringConverter.cs#L24
Possible null reference argument for parameter 'item' in 'void List<string>.Add(string item)'.
build (10.x, net10.0, tcp-2375, tcp://localhost:2375, 0, true): src/Docker.DotNet/Models/ObjectExtensionData.cs#L6
Non-nullable property 'ExtensionData' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build (8.x, net8.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (10.x, net10.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/QueryString.cs#L109
Possible null reference argument for parameter 'item2' in 'Tuple<PropertyInfo, TAttribType>.Tuple(PropertyInfo item1, TAttribType item2)'.
build (8.x, net8.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (8.x, net8.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (10.x, net10.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (8.x, net8.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (8.x, net8.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/Models/ObjectExtensionData.cs#L6
Non-nullable property 'ExtensionData' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build (10.x, net10.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (10.x, net10.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (10.x, net10.0, tcp-2375-native, tcp://localhost:2375, 1, true): src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (8.x, net8.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/JsonEnumMemberConverter.cs#L5
Nullability of reference types in value of type 'Dictionary<string, string?>' doesn't match target type 'Dictionary<string, string>'.
build (8.x, net8.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/EnumerableQueryStringConverter.cs#L24
Possible null reference argument for parameter 'item' in 'void List<string>.Add(string item)'.
build (10.x, net10.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1,...: src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (10.x, net10.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1,...: src/Docker.DotNet/QueryString.cs#L109
Possible null reference argument for parameter 'item2' in 'Tuple<PropertyInfo, TAttribType>.Tuple(PropertyInfo item1, TAttribType item2)'.
build (10.x, net10.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1,...: src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (10.x, net10.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1,...: src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (10.x, net10.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1,...: src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (9.x, net9.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1, t...: src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (9.x, net9.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1, t...: src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (9.x, net9.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1, t...: src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (9.x, net9.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1, t...: src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (9.x, net9.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1, t...: src/Docker.DotNet/EnumerableQueryStringConverter.cs#L24
Possible null reference argument for parameter 'item' in 'void List<string>.Add(string item)'.
build (9.x, net9.0, tcp-2376-tls-native, tcp://localhost:2376, 1, /home/runner/certs/client, 1, t...: src/Docker.DotNet/Models/ObjectExtensionData.cs#L6
Non-nullable property 'ExtensionData' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build (9.x, net9.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (9.x, net9.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/QueryString.cs#L109
Possible null reference argument for parameter 'item2' in 'Tuple<PropertyInfo, TAttribType>.Tuple(PropertyInfo item1, TAttribType item2)'.
build (9.x, net9.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (9.x, net9.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (9.x, net9.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.
build (10.x, net10.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/QueryString.cs#L109
Possible null reference argument for parameter 'item2' in 'Tuple<PropertyInfo, TAttribType>.Tuple(PropertyInfo item1, TAttribType item2)'.
build (10.x, net10.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/JsonSerializer.cs#L56
Nullability of reference types in value of type 'Task<T?>' doesn't match target type 'Task<T>'.
build (10.x, net10.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/QueryString.cs#L51
Possible null reference argument for parameter 'value' in 'string[] QueryString<T>.ConvertValue(IQueryStringConverter converter, object value)'.
build (10.x, net10.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/QueryString.cs#L46
Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'.
build (10.x, net10.0, tcp-2376-tls, tcp://localhost:2376, 1, /home/runner/certs/client, 0, true): src/Docker.DotNet/QueryString.cs#L40
Possible null reference argument for parameter 'o' in 'bool QueryString<T>.IsDefaultOfType(object o)'.