bit_vector 0.1.0

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • --

bit_vector #

Build Status

A pure Dart memory-efficient packed representation for bit arrays.

Examples #

import 'package:bit_vector/bit_vector.dart';

main() {
  BitVector v = new BitVector();
  v.set(68);
  print(v.get(68)); // true
  v.toggle(68);
  print(v.get(68)); // false
}

Changelog #

0.1.0 #

  • Initial version

example/bit_vector_example.dart

// Copyright (c) 2016, kseo. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:bit_vector/bit_vector.dart';

main() {
  BitVector v = new BitVector();
  v.set(68);
  print(v.get(68)); // true
  v.toggle(68);
  print(v.get(68)); // false
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  bit_vector: ^0.1.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:bit_vector/bit_vector.dart';
  
Version Uploaded Documentation Archive
0.4.1 Oct 15, 2016 Go to the documentation of bit_vector 0.4.1 Download bit_vector 0.4.1 archive
0.4.0 Oct 15, 2016 Go to the documentation of bit_vector 0.4.0 Download bit_vector 0.4.0 archive
0.3.0 Oct 13, 2016 Go to the documentation of bit_vector 0.3.0 Download bit_vector 0.3.0 archive
0.2.0 Oct 11, 2016 Go to the documentation of bit_vector 0.2.0 Download bit_vector 0.2.0 archive
0.1.0 Oct 10, 2016 Go to the documentation of bit_vector 0.1.0 Download bit_vector 0.1.0 archive
Awaiting analysis to complete.