@@ -84,7 +84,7 @@ pub const InfoReader = struct {
8484 .dwarf64 = > 12 ,
8585 } + cuh_length ;
8686 while (p .pos < end_pos ) {
87- const di_code = try p .readULEB128 (u64 );
87+ const di_code = try p .readUleb128 (u64 );
8888 if (di_code == 0 ) return error .UnexpectedEndOfFile ;
8989 if (di_code == code ) return ;
9090
@@ -187,14 +187,14 @@ pub const InfoReader = struct {
187187 dw .FORM .block1 = > try p .readByte (),
188188 dw .FORM .block2 = > try p .readInt (u16 ),
189189 dw .FORM .block4 = > try p .readInt (u32 ),
190- dw .FORM .block = > try p .readULEB128 (u64 ),
190+ dw .FORM .block = > try p .readUleb128 (u64 ),
191191 else = > unreachable ,
192192 };
193193 return p .readNBytes (len );
194194 }
195195
196196 pub fn readExprLoc (p : * InfoReader ) ! []const u8 {
197- const len : u64 = try p .readULEB128 (u64 );
197+ const len : u64 = try p .readUleb128 (u64 );
198198 return p .readNBytes (len );
199199 }
200200
@@ -204,7 +204,7 @@ pub const InfoReader = struct {
204204 dw .FORM .data2 , dw .FORM .ref2 = > try p .readInt (u16 ),
205205 dw .FORM .data4 , dw .FORM .ref4 = > try p .readInt (u32 ),
206206 dw .FORM .data8 , dw .FORM .ref8 , dw .FORM .ref_sig8 = > try p .readInt (u64 ),
207- dw .FORM .udata , dw .FORM .ref_udata = > try p .readULEB128 (u64 ),
207+ dw .FORM .udata , dw .FORM .ref_udata = > try p .readUleb128 (u64 ),
208208 dw .FORM .sdata = > @bitCast (try p .readILEB128 (i64 )),
209209 else = > return error .UnhandledForm ,
210210 };
@@ -216,7 +216,7 @@ pub const InfoReader = struct {
216216 dw .FORM .strx2 , dw .FORM .addrx2 = > try p .readInt (u16 ),
217217 dw .FORM .strx3 , dw .FORM .addrx3 = > error .UnhandledForm ,
218218 dw .FORM .strx4 , dw .FORM .addrx4 = > try p .readInt (u32 ),
219- dw .FORM .strx , dw .FORM .addrx = > try p .readULEB128 (u64 ),
219+ dw .FORM .strx , dw .FORM .addrx = > try p .readUleb128 (u64 ),
220220 else = > return error .UnhandledForm ,
221221 };
222222 }
@@ -281,10 +281,10 @@ pub const InfoReader = struct {
281281 };
282282 }
283283
284- pub fn readULEB128 (p : * InfoReader , comptime Type : type ) ! Type {
284+ pub fn readUleb128 (p : * InfoReader , comptime Type : type ) ! Type {
285285 var stream = std .io .fixedBufferStream (p .bytes ()[p .pos .. ]);
286286 var creader = std .io .countingReader (stream .reader ());
287- const value : Type = try leb .readULEB128 (Type , creader .reader ());
287+ const value : Type = try leb .readUleb128 (Type , creader .reader ());
288288 p .pos += creader .bytes_read ;
289289 return value ;
290290 }
@@ -316,10 +316,10 @@ pub const AbbrevReader = struct {
316316
317317 pub fn readDecl (p : * AbbrevReader ) ! ? AbbrevDecl {
318318 const pos = p .pos ;
319- const code = try p .readULEB128 (Code );
319+ const code = try p .readUleb128 (Code );
320320 if (code == 0 ) return null ;
321321
322- const tag = try p .readULEB128 (Tag );
322+ const tag = try p .readUleb128 (Tag );
323323 const has_children = (try p .readByte ()) > 0 ;
324324 return .{
325325 .code = code ,
@@ -332,8 +332,8 @@ pub const AbbrevReader = struct {
332332
333333 pub fn readAttr (p : * AbbrevReader ) ! ? AbbrevAttr {
334334 const pos = p .pos ;
335- const at = try p .readULEB128 (At );
336- const form = try p .readULEB128 (Form );
335+ const at = try p .readUleb128 (At );
336+ const form = try p .readUleb128 (Form );
337337 return if (at == 0 and form == 0 ) null else .{
338338 .at = at ,
339339 .form = form ,
@@ -348,10 +348,10 @@ pub const AbbrevReader = struct {
348348 return p .bytes ()[p .pos ];
349349 }
350350
351- pub fn readULEB128 (p : * AbbrevReader , comptime Type : type ) ! Type {
351+ pub fn readUleb128 (p : * AbbrevReader , comptime Type : type ) ! Type {
352352 var stream = std .io .fixedBufferStream (p .bytes ()[p .pos .. ]);
353353 var creader = std .io .countingReader (stream .reader ());
354- const value : Type = try leb .readULEB128 (Type , creader .reader ());
354+ const value : Type = try leb .readUleb128 (Type , creader .reader ());
355355 p .pos += creader .bytes_read ;
356356 return value ;
357357 }
0 commit comments