mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 12:10:59 +01:00
Add a way to cache result for future evaluations.
This commit is contained in:
parent
4941ba3413
commit
9416202465
10 changed files with 206 additions and 10 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#define __SERIALISE_H
|
||||
|
||||
#include "types.hh"
|
||||
|
||||
#include "aterm-map.hh"
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
|
@ -98,12 +98,16 @@ void writeInt(unsigned int n, Sink & sink);
|
|||
void writeLongLong(unsigned long long n, Sink & sink);
|
||||
void writeString(const string & s, Sink & sink);
|
||||
void writeStringSet(const StringSet & ss, Sink & sink);
|
||||
void writeATerm(ATerm t, Sink & sink);
|
||||
void writeATermMap(const ATermMap & tm, Sink & sink);
|
||||
|
||||
void readPadding(unsigned int len, Source & source);
|
||||
unsigned int readInt(Source & source);
|
||||
unsigned long long readLongLong(Source & source);
|
||||
string readString(Source & source);
|
||||
StringSet readStringSet(Source & source);
|
||||
ATerm readATerm(Source & source);
|
||||
ATermMap readATermMap(Source & source);
|
||||
|
||||
|
||||
MakeError(SerialisationError, Error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue