Skip to content

Commit

Permalink
note on password
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Dec 2, 2023
1 parent 32beda1 commit 729ffb3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/writesas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,11 @@ void writesas(const char * filePath, Rcpp::DataFrame dat, uint8_t compress,

// large unk
// something related to file password?
// 0000 and 4 byte from date
uint32_t pktu32 = 0;
std::memcpy(&pktu32, &created, sizeof(int32_t));
// this and the next are some cryptic sequence.
// This should be the first 4 byte from the date double. But unsure how
// to get the second part.
uint32_t pktu32 = 1172664912;
// std::memcpy(&pktu32, &created, sizeof(int32_t));
writebin(pktu32, sas, swapit);

pktu32 = 545930268;
Expand Down

0 comments on commit 729ffb3

Please sign in to comment.