Skip to content

kxMaxx/kxBSON

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

kxBSON

Class for reading and writing a stream in BSON format

  • Delphi (Pascal)
  • BSON: Binary-JSON
  • Specification: bsonspec.org
  • Compiler: Embarcadero Delphi

History

  • Version 1 from 12/2020

Usage

uses 
  kxBSON;

procedure BSON_New();
var
  FBSONDoc: TBSONDocument;
begin
  FBSONDoc:=TBSONDocument.Create();
  FBSONDoc.Values.Add( TBSONItemInt32.Create('Item1', MAXInt) );
  FBSONDoc.Values.Add( TBSONItemDouble.Create('Item2', Pi) );
  FBSONDoc.SaveToFile( ExtractFilePath( Application.ExeName ) + 'hello.bson' );
  FBSONDoc.Free;
end;