| 729 | const KeyRef tLogDatacentersPrefix = tLogDatacentersKeys.begin; |
| 730 | |
| 731 | const Key tLogDatacentersKeyFor(Optional<Value> dcID) { |
| 732 | BinaryWriter wr(AssumeVersion(currentProtocolVersion())); |
| 733 | wr.serializeBytes(tLogDatacentersKeys.begin); |
| 734 | wr << dcID; |
| 735 | return wr.toValue(); |
| 736 | } |
| 737 | Optional<Value> decodeTLogDatacentersKey(KeyRef const& key) { |
| 738 | Optional<Value> dcID; |
| 739 | BinaryReader rd(key.removePrefix(tLogDatacentersKeys.begin), AssumeVersion(currentProtocolVersion())); |
no test coverage detected