Bcsv 1.4.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Bcsv --version 1.4.3
                    
NuGet\Install-Package Bcsv -Version 1.4.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bcsv" Version="1.4.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bcsv" Version="1.4.3" />
                    
Directory.Packages.props
<PackageReference Include="Bcsv" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bcsv --version 1.4.3
                    
#r "nuget: Bcsv, 1.4.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bcsv@1.4.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bcsv&version=1.4.3
                    
Install as a Cake Addin
#tool nuget:?package=Bcsv&version=1.4.3
                    
Install as a Cake Tool

Bcsv — C# Bindings for Binary CSV

Fast, compact time-series storage with streaming row-by-row and columnar bulk I/O.

Bcsv provides C# bindings for the BCSV library via P/Invoke to the native bcsv_c_api shared library. The NuGet package includes pre-built native binaries for Windows x64, Linux x64/ARM64, and macOS x64/ARM64.

Installation

dotnet add package Bcsv

Quick Start

using Bcsv;

// Define a schema
var layout = new BcsvLayout();
layout.AddColumn("timestamp", ColumnType.Double);
layout.AddColumn("temperature", ColumnType.Float);
layout.AddColumn("label", ColumnType.String);

// Write rows
using var writer = new BcsvWriter(layout);
writer.Open("data.bcsv");
var row = writer.NewRow();
row.Set(0, 1.0);
row.Set(1, 23.5f);
row.Set(2, "sensor-A");
writer.WriteRow(row);
writer.Close();

// Read rows
using var reader = new BcsvReader("data.bcsv");
while (reader.ReadNext())
{
    double ts = reader.Row.GetDouble(0);
    float temp = reader.Row.GetFloat(1);
    string label = reader.Row.GetString(2);
}

Columnar Bulk I/O

For high-throughput scenarios, use BcsvColumns to read/write entire columns at once with pinned arrays and a single P/Invoke call:

using Bcsv;

// Write columnar data
double[] timestamps = { 1.0, 2.0, 3.0 };
float[] temperatures = { 20.1f, 21.3f, 19.8f };
string[] labels = { "a", "b", "c" };

BcsvColumns.Write("data.bcsv", layout,
    new object[] { timestamps, temperatures, labels });

// Read columnar data
var columns = BcsvColumns.Read("data.bcsv");

Supported Platforms

Runtime ID OS Architecture
win-x64 Windows 10+ x86-64
linux-x64 Linux (glibc) x86-64
linux-arm64 Linux (glibc) ARM64
osx-x64 macOS 13.3+ x86-64
osx-arm64 macOS 13.3+ ARM64

Requirements

  • .NET 8.0 or .NET 10.0
  • Native library is bundled in the NuGet package — no separate installation needed

Documentation

License

MIT — see LICENSE

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.5.7 111 4/19/2026
1.5.5 105 4/19/2026
1.5.4 104 4/11/2026
1.5.4-upm 98 4/11/2026
1.5.3 116 3/22/2026
1.5.2 100 3/22/2026
1.5.1 99 3/22/2026
1.5.0 102 3/21/2026
1.4.3 119 3/13/2026
0.0.1-alpha 99 3/13/2026