private static LibreBlock create(String reference, long timestamp, byte[] blocks, int byte_start) { UserError.Log.e(TAG,"Backtrack: "+JoH.backTrace()); if (reference == null) { UserError.Log.e(TAG, "Cannot save block with null reference"); return null; } if (blocks == null) { UserError.Log.e(TAG, "Cannot save block with null data"); return null; } final LibreBlock lb = new LibreBlock(); lb.reference = reference; lb.blockbytes = blocks; lb.byte_start = byte_start; lb.byte_end = byte_start + blocks.length; lb.timestamp = timestamp; lb.uuid = UUID.randomUUID().toString(); return lb; }
private static LibreBlock create(String reference, long timestamp, byte[] blocks, int byte_start) { UserError.Log.e(TAG,"Backtrack: "+JoH.backTrace()); if (reference == null) { UserError.Log.e(TAG, "Cannot save block with null reference"); return null; } if (blocks == null) { UserError.Log.e(TAG, "Cannot save block with null data"); return null; } final LibreBlock lb = new LibreBlock(); lb.reference = reference; lb.blockbytes = blocks; lb.byte_start = byte_start; lb.byte_end = byte_start + blocks.length; lb.timestamp = timestamp; lb.uuid = UUID.randomUUID().toString(); return lb; }
private static LibreBlock create(String reference, long timestamp, byte[] blocks, int byte_start) { UserError.Log.e(TAG,"Backtrack: "+JoH.backTrace()); if (reference == null) { UserError.Log.e(TAG, "Cannot save block with null reference"); return null; } if (blocks == null) { UserError.Log.e(TAG, "Cannot save block with null data"); return null; } final LibreBlock lb = new LibreBlock(); lb.reference = reference; lb.blockbytes = blocks; lb.byte_start = byte_start; lb.byte_end = byte_start + blocks.length; lb.timestamp = timestamp; lb.uuid = UUID.randomUUID().toString(); return lb; }