public static Slice ToSlice(this long val, ByteStringContext context) { lock (_writerSync) //precaution, should be uncontested { _int64Writer.Reset(); _int64Writer.WriteBigEndian(val); return(_int64Writer.CreateSlice(context)); } }
public static Slice ToSlice(this long val, ByteStringContext context) { lock (_writerSync) //precaution, should be uncontested { _int64Writer.Reset(); _int64Writer.WriteBigEndian(val); return(_int64Writer.CreateSlice(context)); } }