File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ internal static class Utils
1111 /// <summary>
1212 /// The max size in bytes of a c-string for a snowflake identifier.
1313 /// </summary>
14- public const int SNOWFLAKE_MAX_CSTRING_LENGTH = 21 ;
14+ public const int SnowflakeMaxCStringLength = 21 ;
1515
1616 /// <summary>
1717 /// Converts a snowflake to a C string.
@@ -22,8 +22,8 @@ internal static class Utils
2222 /// <exception cref="InvalidOperationException">The ID couldn't be formatted.</exception>
2323 public static unsafe AllocHandle ToCString ( ulong id , out ReadOnlySpan < CChar > str )
2424 {
25- var ptr = ( CChar * ) NativeMemory . Alloc ( SNOWFLAKE_MAX_CSTRING_LENGTH ) ;
26- var span = new Span < byte > ( ptr , SNOWFLAKE_MAX_CSTRING_LENGTH ) ;
25+ var ptr = ( CChar * ) NativeMemory . Alloc ( SnowflakeMaxCStringLength ) ;
26+ var span = new Span < byte > ( ptr , SnowflakeMaxCStringLength ) ;
2727
2828 if ( ! id . TryFormat ( span , out var sz ) )
2929 throw new InvalidOperationException ( ) ;
You can’t perform that action at this time.
0 commit comments