Пример #1
0
 /// <summary>Set the value of a network option on the database handler</summary>
 private static FdbError SetNetworkOption(FdbNetworkOption option, Slice value)
 {
     value.EnsureSliceIsValid();
     unsafe
     {
         fixed(byte *ptr = value.Array)
         {
             return(FdbNative.NetworkSetOption(option, ptr + value.Offset, value.Count));
         }
     }
 }
Пример #2
0
 /// <summary>Set the value of a network option on the database handler</summary>
 private static FdbError SetNetworkOption(FdbNetworkOption option, string value)
 {
     unsafe
     {
         var data = FdbNative.ToNativeString(value, nullTerminated: false);
         fixed(byte *ptr = data.Array)
         {
             return(FdbNative.NetworkSetOption(option, ptr + data.Offset, data.Count));
         }
     }
 }