mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-06-28 14:16:24 +02:00
mtredisalize: Add infrastructure to send backend store changes to separate daemons.
This commit is contained in:
@ -216,6 +216,15 @@ func DecodeStringFromBytesToInterleaved(key []byte) (v int64, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func DecodeStringBytesToCoord(key []byte) (coord Coord, err error) {
|
||||
var k int64
|
||||
if k, err = DecodeStringFromBytes(key); err != nil {
|
||||
return
|
||||
}
|
||||
coord = PlainToCoord(k)
|
||||
return
|
||||
}
|
||||
|
||||
func EncodeStringToBytesFromInterleaved(key int64) ([]byte, error) {
|
||||
return EncodeStringToBytes(TransformInterleavedToPlain(key))
|
||||
}
|
||||
|
Reference in New Issue
Block a user