Skip to content
Permalink
Browse files
Merge pull request #10 from jellyfin/struct
  • Loading branch information
Bond-009 committed May 1, 2021
2 parents 447f948 + 85306bf commit 69bc611fe0aa3bf1c3fbaf677b1cb1e6bed82dd8
Showing with 5 additions and 5 deletions.
  1. +5 −5 SQLitePCL.pretty/SQLiteValue.cs
@@ -367,7 +367,7 @@ public static Uri ToUri(this ISQLiteValue This)
}
}

internal sealed class NativeValue : ISQLiteValue
internal struct NativeValue : ISQLiteValue
{
private readonly sqlite3_value value;

@@ -501,7 +501,7 @@ public long ToInt64()
public override string ToString() => throw new NotSupportedException();
}

internal class StringValue : ISQLiteValue
internal struct StringValue : ISQLiteValue
{
private static readonly Regex isNegative = new Regex("^[ ]*[-]");
private static readonly Regex stringToDoubleCast = new Regex("^[ ]*([-]?)[0-9]+([.][0-9]+)?");
@@ -575,7 +575,7 @@ public long ToInt64()
public override string ToString() => value;
}

internal class BlobValue : ISQLiteValue
internal struct BlobValue : ISQLiteValue
{
private readonly byte[] value;

@@ -604,7 +604,7 @@ internal BlobValue(byte[] value)
Encoding.UTF8.GetString(value);
}

internal sealed class ResultSetValueImpl : IResultSetValue
internal struct ResultSetValueImpl : IResultSetValue
{
private readonly StatementImpl stmt;
private readonly int index;
@@ -640,7 +640,7 @@ internal ResultSetValueImpl(StatementImpl stmt, int index)
raw.sqlite3_column_text(stmt.sqlite3_stmt, index).utf8_to_string() ?? string.Empty;
}

internal class ZeroBlob : ISQLiteValue
internal struct ZeroBlob : ISQLiteValue
{
private readonly int length;

0 comments on commit 69bc611

Please sign in to comment.