| author | |
| committer | |
| log | dc288f5873d80b46bbfd02e8aa6053cb8e3c01e2 |
| tree | c15a5812800643edb14671c6c039ae92fade3cee |
| parent | 9bbecc6e25ba446060b4417133c9de2eacd63076 |
| signature | Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw |
1 files changed, 4 insertions(+), 1 deletions(-)
ulid.zig+4-1| ... | ... | @@ -53,8 +53,11 @@ pub const ULID = struct { |
| 53 | 53 | return res.toOwnedSlice(); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | pub fn bindField(self: ULID) ![26]u8 { | |
| 57 | return self.bytes(); | |
| 58 | } | |
| 59 | ||
| 56 | 60 | pub const readField = parse; |
| 57 | pub const bindField = toString; | |
| 58 | 61 | |
| 59 | 62 | pub fn bytes(self: ULID) [26]u8 { |
| 60 | 63 | var buf: [26]u8 = undefined; |